.hcs-gallery-page {
    background: #ffffff;
    color: #1F1F1F;
}

.hcs-gallery-section-label {
    margin: 0 0 16px;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6E6A64;
}

/* HERO */
.hcs-gallery-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hcs-gallery-hero__media {
    position: absolute;
    inset: 0;
}

.hcs-gallery-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hcs-gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.62) 0%,
        rgba(0,0,0,0.24) 42%,
        rgba(0,0,0,0.08) 72%,
        rgba(0,0,0,0.03) 100%
    );
}

.hcs-gallery-hero__content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 70px;
}

.hcs-gallery-hero__content {
    max-width: 860px;
    color: #ffffff;
}

.hcs-gallery-hero__label {
    margin: 0 0 16px;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.hcs-gallery-hero__title {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 92px);
    line-height: 0.98;
    font-weight: 500;
    color:#ffffff;
}

.hcs-gallery-hero__subtitle {
    margin: 0 0 16px;
    max-width: 620px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

.hcs-gallery-hero__meta {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.76);
}

/* INTRO */
.hcs-gallery-intro {
    padding: 110px 0;
}

.hcs-gallery-intro__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hcs-gallery-intro__lead {
    margin: 0 0 26px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.15;
    color: #1F1F1F;
}

.hcs-gallery-intro__text {
    font-size: 18px;
    line-height: 1.85;
    color: #4F4F4F;
}


/* OEUVRES */

figure {
    margin: 0!important;
}

/* OEUVRES */
.hcs-gallery-artworks {
    padding: 0 0 120px;
}

.hcs-gallery-artworks__grid {
    display: grid;
    gap: 2px;
    width: 100%;
}

.hcs-gallery-artworks__item {
    position: relative;
    overflow: hidden;
    background: #F7F4EF;
    aspect-ratio: 4 / 3;
}

.hcs-gallery-artworks__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.hcs-gallery-artworks__item:hover img {
    transform: scale(1.03);
}

/* 1 image */
.hcs-gallery-artworks__grid.is-count-1 {
    grid-template-columns: 1fr;
}

/* 2 images */
.hcs-gallery-artworks__grid.is-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 images */
.hcs-gallery-artworks__grid.is-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 images */
.hcs-gallery-artworks__grid.is-count-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* 5 images et plus */
.hcs-gallery-artworks__grid.is-count-many {
    grid-template-columns: repeat(3, 1fr);
}



/* BIO */
.hcs-gallery-bio {
    padding: 120px 0;
}

.hcs-gallery-bio__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: start;
}

.hcs-gallery-bio__content h2,
.hcs-gallery-highlights__header h2,
.hcs-gallery-location__content h2,
.hcs-gallery-cta__inner h2 {
    margin: 0 0 24px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.06;
    color: #1F1F1F;
}

.hcs-gallery-bio__content p,
.hcs-gallery-location__content p,
.hcs-gallery-cta__inner p {
    font-size: 18px;
    line-height: 1.85;
    color: #4F4F4F;
}

.hcs-gallery-bio__media img,
.hcs-gallery-location__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* HIGHLIGHTS */
.hcs-gallery-highlights {
    padding: 120px 0;
    background: #F7F4EF;
}

.hcs-gallery-highlights__header {
    max-width: 760px;
    margin: 0 0 50px;
}

.hcs-gallery-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(31,31,31,0.08);
}

.hcs-gallery-highlight-card {
    background: #F7F4EF;
    padding: 40px 34px 36px;
    min-height: 280px;
    transition: background 0.35s ease, transform 0.35s ease;
}

.hcs-gallery-highlight-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.hcs-gallery-highlight-card h3 {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    line-height: 1.08;
    color: #1F1F1F;
}

.hcs-gallery-highlight-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #4F4F4F;
}

/* LOCATION */
.hcs-gallery-location {
    padding: 120px 0;
}

.hcs-gallery-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hcs-gallery-location__actions,
.hcs-gallery-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 30px;
}

/* CTA */
.hcs-gallery-cta {
    padding: 120px 0;
    background: #F7F4EF;
}

.hcs-gallery-cta__inner {
    max-width: 760px;
}

/* LINKS */
.hcs-text-link {
    color: #A38C6D;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hcs-text-link:hover {
    border-color: #A38C6D;
}

/* REVEAL */
[data-hcs-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-hcs-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .hcs-gallery-bio__grid,
    .hcs-gallery-location__grid,
    .hcs-gallery-highlights__grid {
        grid-template-columns: 1fr;
    }

    .hcs-gallery-artworks__grid.is-count-2,
    .hcs-gallery-artworks__grid.is-count-3,
    .hcs-gallery-artworks__grid.is-count-4,
    .hcs-gallery-artworks__grid.is-count-many {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hcs-gallery-hero {
        min-height: 70vh;
    }

    .hcs-gallery-hero__content-wrap {
        padding-bottom: 40px;
    }

    .hcs-gallery-intro,
    .hcs-gallery-bio,
    .hcs-gallery-highlights,
    .hcs-gallery-location,
    .hcs-gallery-cta {
        padding: 80px 0;
    }

    .hcs-gallery-artworks__grid.is-count-2,
    .hcs-gallery-artworks__grid.is-count-3,
    .hcs-gallery-artworks__grid.is-count-4,
    .hcs-gallery-artworks__grid.is-count-many {
        grid-template-columns: 1fr;
    }

    .hcs-gallery-artworks__item {
        aspect-ratio: 4 / 3;
    }

    .hcs-gallery-highlight-card {
        min-height: auto;
    }
}