/* LimageCMS v0.2 — F10/F12 gallery cards */
.f10-gallery-page .gallery-header { margin-bottom: 22px; }

.f10-gallery-page .gallery-taxonomy-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.f10-gallery-page .gallery-taxonomy-row__label {
    color: var(--muted, #687586);
    font-size: .92rem;
}

.f10-gallery-page .gallery-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.f10-gallery-page .gallery-taxonomy-chip,
.f10-gallery-page .gallery-taxonomy-row > a,
.f10-gallery-page .gallery-taxonomy-row > span:not(.gallery-taxonomy-row__label) {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #fff;
    color: var(--text, #18202a);
    text-decoration: none;
    line-height: 1.25;
    box-shadow: 0 1px 3px rgba(20,31,45,.04);
}

.f10-gallery-page .gallery-taxonomy-chip:hover,
.f10-gallery-page .gallery-taxonomy-row > a:hover {
    border-color: #c2ccd8;
    background: #f8fafc;
    color: var(--text, #18202a);
}

.f10-gallery-page .gallery-taxonomy-chip--tag { color: var(--muted, #687586); }

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    width: 100%;
    margin-top: 22px;
}

.photo-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #eef1f4;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    line-height: 0;
}

.photo-card__link {
    display: block;
    width: 100%;
    line-height: 0;
}

.photo-card__image {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
    background: #eef1f4;
}

@media (max-width: 900px) {
    .gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 600px) {
    .gallery-photo-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
    .photo-card { border-radius: 8px; }
}
