
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
  background: #0a0a0b;
  color: #f2ede4;
  font: 300 16px/1.7 Arial, sans-serif;
  overflow-x: hidden;
  padding-bottom: 84px;
  -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- HERO ---------- */

.gallery-hero {
    width: min(1440px, calc(100% - 70px));
    min-height: 82vh;
    margin: auto;
    padding: 140px 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-number {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--g-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero-number span {
    width: 35px;
    height: 1px;
    background: var(--g-gold);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
}

.hero-content h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(70px, 12vw, 175px);
    line-height: 0.78;
    letter-spacing: -0.09em;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--g-gold);
}

.hero-description {
    width: 330px;
    margin-bottom: 10px;
}

.hero-description p {
    margin-bottom: 15px;
    color: var(--g-muted-2);
    font-size: 14px;
    line-height: 1.8;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--g-muted);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.hero-scroll span {
    width: 45px;
    height: 1px;
    background: var(--g-gold-line);
}

/* ---------- INTRO ---------- */

.gallery-intro {
    width: min(1440px, calc(100% - 70px));
    margin: auto;
    padding: 130px 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--g-gold-soft);
}

.section-label {
    color: var(--g-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.intro-left h2 {
    margin-top: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(50px, 7vw, 100px);
    line-height: 0.82;
    letter-spacing: -0.07em;
}

.intro-left h2 span {
    display: block;
    color: var(--g-gold);
}

.intro-right {
    width: 340px;
}

.intro-right p {
    color: var(--g-muted-2);
    font-size: 14px;
    line-height: 1.8;
}

.image-count {
    display: block;
    margin-top: 30px;
    color: var(--g-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* ---------- FILTERS ---------- */

.gallery-controls {
    width: min(1440px, calc(100% - 70px));
    margin: auto;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--g-gold-soft);
}

.filter-label {
    color: var(--g-muted);
    font-size: 10px;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    padding: 10px 17px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 100px;
    background: transparent;
    color: var(--g-muted-2);
    font-size: 11px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter:hover {
    border-color: var(--g-gold);
    color: var(--g-gold);
}

.filter.active {
    background: var(--g-gold);
    border-color: var(--g-gold);
    color: #050505;
    font-weight: 700;
}

/* ---------- GRID ---------- */

.gallery-grid {
    width: min(1440px, calc(100% - 70px));
    margin: 50px auto 150px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 12px;
}

.gallery-item {
    min-width: 0;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 430px;
    padding: 0;
    overflow: hidden;
    background: var(--g-panel);
    border: 1px solid var(--g-gold-line);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.4s ease;
}

.gallery-photo:hover,
.gallery-photo:focus-visible {
    border-color: rgba(201, 162, 39, 0.55);
}

.gallery-photo:focus-visible {
    outline: 2px solid var(--g-gold);
    outline-offset: 3px;
}

.gallery-item.large .gallery-photo {
    height: 550px;
}

.gallery-item.tall .gallery-photo {
    height: 875px;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
    filter: grayscale(15%);
}

.gallery-photo::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.05) 65%, rgba(5, 5, 5, 0.1));
    opacity: 0.7;
    transition: 0.5s ease;
}

.gallery-photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 15px;
    border: 1px solid rgba(201, 162, 39, 0);
    transition: 0.5s ease;
    pointer-events: none;
}

.gallery-photo:hover img {
    transform: scale(1.09);
    filter: grayscale(0);
}

.gallery-photo:hover::before {
    opacity: 1;
}

.gallery-photo:hover::after {
    border-color: rgba(201, 162, 39, 0.35);
}

.photo-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.photo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-number,
.photo-category {
    opacity: 0;
    transform: translateY(-12px);
    transition: 0.5s ease;
}

.photo-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 50%;
    color: var(--g-gold);
    font-size: 10px;
}

.photo-category {
    color: var(--g-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.photo-bottom {
    transform: translateY(15px);
    transition: 0.5s ease;
}

.photo-bottom h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.photo-bottom p {
    max-width: 350px;
    margin-top: 8px;
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s ease;
}

.view-story {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--g-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s ease;
}

.view-story b {
    font-size: 17px;
    font-weight: 400;
}

.gallery-photo:hover .photo-number,
.gallery-photo:hover .photo-category,
.gallery-photo:focus-visible .photo-number,
.gallery-photo:focus-visible .photo-category {
    opacity: 1;
    transform: translateY(0);
}

.gallery-photo:hover .photo-bottom,
.gallery-photo:focus-visible .photo-bottom {
    transform: translateY(0);
}

.gallery-photo:hover .photo-bottom p,
.gallery-photo:hover .view-story,
.gallery-photo:focus-visible .photo-bottom p,
.gallery-photo:focus-visible .view-story {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- CTA ---------- */

.gallery-cta {
    width: min(1440px, calc(100% - 70px));
    margin: auto;
    padding: 130px 0 170px;
    border-top: 1px solid var(--g-gold-soft);
}

.gallery-cta h2 {
    margin-top: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(60px, 9vw, 130px);
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.gallery-cta h2 em {
    font-style: normal;
    color: var(--g-gold);
}

.gallery-cta p {
    max-width: 380px;
    margin-top: 35px;
    color: var(--g-muted-2);
    font-size: 14px;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 15px 20px;
    border: 1px solid var(--g-gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    transition: 0.3s ease;
}

.cta-button span {
    font-size: 18px;
}

.cta-button:hover {
    background: var(--g-gold);
    color: #050505;
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-inner {
    width: min(1200px, 90vw);
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 35px;
    align-items: center;
}

.lightbox-image-wrap {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid var(--g-gold-line);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.lightbox-details {
    padding-right: 30px;
}

.lightbox-details span {
    color: var(--g-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.lightbox-details h2 {
    margin-top: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(35px, 4vw, 65px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.lightbox-details p {
    margin-top: 25px;
    color: var(--g-muted-2);
    font-size: 14px;
    line-height: 1.8;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s ease;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 28px;
}

.lightbox-arrow {
    top: 50%;
    width: 55px;
    height: 55px;
    font-size: 20px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-close:hover,
.lightbox-arrow:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
    background: var(--g-gold);
    border-color: var(--g-gold);
    color: #050505;
    outline: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.tall .gallery-photo,
    .gallery-item.large .gallery-photo {
        height: 550px;
    }

    .lightbox-inner {
        grid-template-columns: 1fr;
    }

    .lightbox-image-wrap {
        height: 62vh;
    }

    .lightbox-details {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 800px) {

    .gallery-hero,
    .gallery-intro,
    .gallery-controls,
    .gallery-grid,
    .gallery-cta {
        width: calc(100% - 30px);
    }

    .gallery-hero {
        min-height: 75vh;
        padding-top: 120px;
    }

    .hero-content {
        display: block;
    }

    .hero-content h1 {
        font-size: clamp(65px, 17vw, 120px);
    }

    .hero-description {
        width: 100%;
        margin-top: 45px;
    }

    .gallery-intro {
        display: block;
    }

    .intro-right {
        width: 100%;
        margin-top: 40px;
    }

    .gallery-controls {
        display: block;
    }

    .filter-label {
        margin-bottom: 15px;
    }

    .gallery-grid {
        margin-top: 30px;
    }
}

@media (max-width: 560px) {

    .gallery-hero {
        min-height: 650px;
    }

    .hero-content h1 {
        font-size: 67px;
    }

    .gallery-intro {
        padding-top: 90px;
    }

    .intro-left h2 {
        font-size: 55px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .gallery-item.large .gallery-photo,
    .gallery-item.tall .gallery-photo,
    .gallery-photo {
        height: 500px;
    }

    .photo-bottom h3 {
        font-size: 21px;
    }

    /* No hover on phones: always show the captions */
    .photo-number,
    .photo-category,
    .photo-bottom,
    .photo-bottom p,
    .view-story {
        opacity: 1;
        transform: none;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-inner {
        width: 100%;
    }

    .lightbox-image-wrap {
        height: 55vh;
    }

    .lightbox-details h2 {
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: 45%;
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gallery-photo img,
    .gallery-photo::before,
    .gallery-photo::after,
    .photo-number,
    .photo-category,
    .photo-bottom,
    .photo-bottom p,
    .view-story,
    .lightbox {
        transition-duration: 0.01ms !important;
    }
}