/* URWA — Gallery page · 2030 premium (#000 #FFF #E60000 #C9A227) */

.gallery-page {
    overflow-x: hidden;
    background: #000000;
}

/* ── Hero ───────────────────────────────────────────── */

.gallery-hero {
    position: relative;
    min-height: var(--page-hero-min-height);
    display: flex;
    align-items: flex-end;
    padding: var(--page-hero-padding-top) var(--page-hero-padding-x) var(--page-hero-padding-bottom);
    overflow: hidden;
    background: #000000;
}

.gallery-hero__bg {
    position: absolute;
    inset: 0;
}

.gallery-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: galleryHeroZoom 18s ease-in-out infinite alternate;
}

@keyframes galleryHeroZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

.gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #000000 0%, #000000 42%, transparent 100%);
}

.gallery-hero__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.gallery-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid #C9A227;
    border-radius: 999px;
    color: #C9A227;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gallery-hero h1 {
    margin: 0 0 14px;
    max-width: 14ch;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #FFFFFF;
}

.gallery-hero p {
    margin: 0 0 24px;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.7;
    color: #B0B0B0;
}

.gallery-hero__btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid #E60000;
    border-radius: 999px;
    background: #E60000;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.35s ease, transform 0.35s ease;
}

.gallery-hero__btn:hover {
    transform: translateY(-3px);
    background: #000000;
    color: #FFFFFF;
}

/* ── Main gallery ───────────────────────────────────── */

.gallery-main {
    position: relative;
    padding: clamp(48px, 6vw, 72px) 5vw clamp(64px, 8vw, 96px);
    background: #000000;
}

.gallery-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#111111 1px, transparent 1px),
        linear-gradient(90deg, #111111 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000000 0%, transparent 90%);
}

.gallery-main__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto 40px;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #E60000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gallery-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #E60000;
}

.gallery-main__intro h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #C9A227;
}

.gallery-main__intro p {
    margin: 0;
    font-size: 0.92rem;
    color: #888888;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #333333;
    border-radius: 999px;
    background: #0A0A0A;
    color: #AAAAAA;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.gallery-filter:hover {
    border-color: #C9A227;
    color: #C9A227;
    transform: translateY(-2px);
}

.gallery-filter.is-active {
    border-color: #E60000;
    background: #E60000;
    color: #FFFFFF;
}

/* ── Photo grid ─────────────────────────────────────── */

.gallery-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #222222;
    border-radius: 16px;
    overflow: hidden;
    background: #0A0A0A;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card.is-in:hover {
    border-color: #C9A227;
    transform: translateY(-5px);
    box-shadow: 0 20px 48px #050505;
}

.gallery-card__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.gallery-card__frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111111;
}

.gallery-card__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card.is-in:hover .gallery-card__frame img {
    transform: scale(1.05);
}

.gallery-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, #000000 100%);
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gallery-card.is-in:hover .gallery-card__shade {
    opacity: 0.65;
}

.gallery-card__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #C9A227;
    border-radius: 50%;
    color: #C9A227;
    background: #000000;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.gallery-card.is-in:hover .gallery-card__zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card__info {
    padding: 16px 18px 20px;
    border-top: 1px solid #1A1A1A;
}

.gallery-card__cat {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid #E60000;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E60000;
}

.gallery-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
    color: #FFFFFF;
    transition: color 0.25s ease;
}

.gallery-card.is-in:hover .gallery-card__title {
    color: #C9A227;
}

.gallery-empty {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px;
    border: 1px dashed #333333;
    border-radius: 16px;
    text-align: center;
    color: #888888;
}

.gallery-empty strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #FFFFFF;
}

.gallery-empty__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid #C9A227;
    border-radius: 999px;
    color: #C9A227;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.gallery-empty__btn:hover {
    background: #C9A227;
    color: #000000;
}

/* ── CTA ────────────────────────────────────────────── */

.gallery-cta {
    padding: clamp(56px, 7vw, 88px) 5vw;
    background: #000000;
    border-top: 1px solid #1A1A1A;
}

.gallery-cta__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(36px, 4vw, 48px);
    border: 1px solid #333333;
    border-top: 3px solid #C9A227;
    border-radius: 20px;
    text-align: center;
    background: #0A0A0A;
}

.gallery-cta h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 800;
    color: #C9A227;
}

.gallery-cta p {
    margin: 0 0 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #888888;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.gallery-btn--gold {
    border: 2px solid #C9A227;
    background: #C9A227;
    color: #000000;
}

.gallery-btn--gold:hover {
    transform: translateY(-3px);
    background: #000000;
    color: #C9A227;
}

/* ── Scroll reveal ──────────────────────────────────── */

.gallery-page.js-ready .gallery-reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--gallery-delay, 0ms);
}

.gallery-page.js-ready .gallery-reveal.is-in {
    transform: translateY(0);
}

.gallery-hero .gallery-reveal {
    opacity: 0;
    animation: galleryHeroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

@keyframes galleryHeroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .gallery-main__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-filters {
        justify-content: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-hero__overlay {
        background: linear-gradient(180deg, transparent 10%, #000000 88%);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page.js-ready .gallery-reveal,
    .gallery-hero .gallery-reveal,
    .gallery-hero__bg img {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .gallery-card.is-in:hover,
    .gallery-card.is-in:hover img {
        transform: none;
    }
}
