/* ============================================================================
   Photography page — visual design
   Cream editorial palette, serif display title, terracotta active-tab pill,
   irregular masonry grid via CSS columns.
   Enqueue this alongside gallery.js (see functions.php additions).
   ============================================================================ */

.photography-page {
    --bg: #efebe3;
    --ink: #1E1E1E;
    --ink-soft: #8E510B;
    --accent: #8E510B;
    --accent-text: #FBF3E9;
    --hairline: rgba(42, 36, 29, 0.12);

    background: var(--bg);
    color: var(--ink);
    padding: 64px clamp(20px, 5vw, 72px) 96px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Header: eyebrow + title (left), tabs (right) ---------- */

.photo-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--hairline);
}

.photo-eyebrow {
    font-family: 'DM Sans';
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 25px;
    letter-spacing: 17%;
    text-transform: uppercase;

    color: var(--ink-soft);
}

.photo-title {
    font-family: Playfair Display;
    font-weight: 700;
    font-style: Bold;
    font-size: 70px;
    leading-trim: NONE;
    line-height: 74px;
    letter-spacing: -2%;

    color: var(--ink);
}

.photo-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #141B2B;
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 22px;
    letter-spacing: 0%;

}

.filter-btn:hover {
    background: #8E510B;
    color: var(--accent-text);
    padding: 8px 33px;
    border-radius: 20px;
    font-family: 'DM Sans';
    outline: 2px solid var(--accent);
    outline-offset: 2px
}

.filter-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.filter-btn.active {
    background: #8E510B;
    color: var(--accent-text);
    padding: 8px 33px;
    border-radius: 20px;
    font-family: 'DM Sans';
}

/* ---------- Masonry grid ---------- */

.photo-masonry-grid {
    column-count: 4;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

.gallery-item-link {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.gallery-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.gallery-item-link:hover .gallery-img {
    transform: scale(1.015);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item-link:hover .gallery-caption {
    opacity: 1;
}

.gallery-empty,
.gallery-error {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    color: var(--ink-soft);
    padding: 48px 0;
    text-align: center;
    column-span: all;
}

/* ---------- Loading + Load more ---------- */

.gallery-loading {
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
    margin: 32px 0 0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.load-more-btn {
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    border: none;
    border-bottom: 1px solid #8E510B;
    /* border-color
    :#8E510B; */
    color:#8E510B;
    border-radius:0px;
}

.load-more-btn:hover {
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    border: none;
    border-bottom: 1px solid #8E510B;
    /* border-color
    :#8E510B; */
    color:#8E510B;
    border-radius:0px;
    background-color: transparent;
}

.load-more-btn:focus-visible {
   font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    border: none;
    border-bottom: 1px solid #8E510B;
    /* border-color
    :#8E510B; */
    color:#8E510B;
    border-radius:0px;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ---------- Responsive columns ---------- */

@media (max-width: 1024px) {
    .photo-masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 720px) {
    .photo-masonry-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .gallery-item {
        margin-bottom: 14px;
    }

    .photo-header {
        align-items: flex-start;
    }

    .photo-title {
        font-size: 40px;
    }
}

@media (max-width: 460px) {
    .photo-masonry-grid {
        column-count: 1;
    }

    .photo-filters {
        gap: 2px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    .gallery-img,
    .gallery-caption,
    .filter-btn,
    .load-more-btn {
        transition: none;
    }
}