/* =========================================================
   Lifestyle Gallery Block
   ========================================================= */

:root {
    --lg-bg: #ffffff;
    --lg-eyebrow: #2d5547;
    --lg-text: #1a1a1a;
    --lg-muted: #555555;
    --lg-font-serif: Cormorant, serif;
    --lg-font-sans: Montserrat, sans-serif;
    --lg-gap: 6px;
}

/* Section wrapper ---------------------------------------- */
.lifestyle-gallery-block {
    background-color: var(--lg-bg);
    padding: 5rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Header ------------------------------------------------- */
.lifestyle-gallery-block__header {
    text-align: center;
    max-width: 655px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Eyebrow */
.lifestyle-gallery-block__eyebrow {
    font-family: 'Mona Sans Condensed', sans-serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E4542;
}

/* Title */
.lifestyle-gallery-block__title {
    margin: 0;
    font-family: var(--lg-font-serif);
    font-size: 62px;
    font-weight: 300;
    line-height: 1;
    color: var(--lg-text);
}

.lifestyle-gallery-block__title p,
.lifestyle-gallery-block__title h1,
.lifestyle-gallery-block__title h2,
.lifestyle-gallery-block__title h3 {
    margin: 0;
    font-family: var(--lg-font-serif);
    font-size: 65px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--lg-text);
}

.lifestyle-gallery-block__title em,
.lifestyle-gallery-block__title i {
    font-style: italic;
    font-weight: 700;
    font-family: var(--lg-font-serif);
}

.lifestyle-gallery-block__title strong,
.lifestyle-gallery-block__title b {
    font-weight: 700;
    font-family: var(--lg-font-serif);
}

/* Description */
.lifestyle-gallery-block__description {
    margin: 0;
    font-family: var(--lg-font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--lg-muted);
    max-width: 95%;
}

.lifestyle-gallery-block__description p {
    margin: 0 0 0.75em;
    font-family: var(--lg-font-sans);
}

.lifestyle-gallery-block__description p:last-child {
    margin-bottom: 0;
}

/* Grid --------------------------------------------------- */
.lifestyle-gallery-block__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 260px 260px 280px;
    gap: var(--lg-gap);
    max-width: 1540px;
    margin: 0 auto;
}

/* All items */
.lifestyle-gallery-block__item {
    overflow: hidden;
    border-radius: 0px 40px 0px 0px;
    position: relative;
    transition: opacity 0.55s ease,
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
    will-change: opacity, transform;
}

.lifestyle-gallery-block__grid.is-cascade .lifestyle-gallery-block__item:not(.is-in) {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
}

@media (hover: hover) {
    .lifestyle-gallery-block__grid:hover .lifestyle-gallery-block__item {
        opacity: 0.5;
        filter: grayscale(45%) brightness(0.9);
    }

    .lifestyle-gallery-block__grid:hover .lifestyle-gallery-block__item:hover {
        opacity: 1;
        filter: none;
        transform: scale(1.03);
        z-index: 2;
    }
}

.lifestyle-gallery-block__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lifestyle-gallery-block__item:hover img {
    transform: scale(1.04);
}

/*
 * 6-column mosaic for the first 8 images:
 *       c1    c2    c3    c4    c5    c6
 * r1: [ 1  1 ][ 2 ][ 3  3 ][ 4 ]
 * r2: [ 1  1 ][ 5 ][ 6  6 ][ 4 ]
 * r3: [ 7  7  7 ][ 6  6 ][ 8 ]
 */

.lifestyle-gallery-block__item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.lifestyle-gallery-block__item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.lifestyle-gallery-block__item:nth-child(3) {
    grid-column: 4 / 6;
    grid-row: 1;
}

.lifestyle-gallery-block__item:nth-child(4) {
    grid-column: 6;
    grid-row: 1 / 3;
}

.lifestyle-gallery-block__item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.lifestyle-gallery-block__item:nth-child(6) {
    grid-column: 4 / 6;
    grid-row: 2 / 4;
}

.lifestyle-gallery-block__item:nth-child(7) {
    grid-column: 1 / 4;
    grid-row: 3;
}

.lifestyle-gallery-block__item:nth-child(8) {
    grid-column: 6;
    grid-row: 3;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1541px) {
    .lifestyle-gallery-block__title,
    .lifestyle-gallery-block__title p,
    .lifestyle-gallery-block__title h1,
    .lifestyle-gallery-block__title h2,
    .lifestyle-gallery-block__title h3 {
        font-size: 68px;
    }
}

@media (max-width: 1540px) {
    .lifestyle-gallery-block__title,
    .lifestyle-gallery-block__title p,
    .lifestyle-gallery-block__title h1,
    .lifestyle-gallery-block__title h2,
    .lifestyle-gallery-block__title h3 {
        font-size: 65px;
    }
}

@media (max-width: 900px) {
    .lifestyle-gallery-block__title,
    .lifestyle-gallery-block__title p,
    .lifestyle-gallery-block__title h1,
    .lifestyle-gallery-block__title h2,
    .lifestyle-gallery-block__title h3 {
        font-size: 2.6rem;
        line-height: 1.1;
    }

    .lifestyle-gallery-block__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 240px);
    }

    .lifestyle-gallery-block__item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .lifestyle-gallery-block__item:nth-child(1) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 480px) {
    .lifestyle-gallery-block__description,
    .lifestyle-gallery-block__description p,
    .lifestyle-gallery-block__description li,
    .lifestyle-gallery-block__info,
    .lifestyle-gallery-block__info p {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    .lifestyle-gallery-block__title,
    .lifestyle-gallery-block__title p,
    .lifestyle-gallery-block__title h1,
    .lifestyle-gallery-block__title h2,
    .lifestyle-gallery-block__title h3 {
        font-size: 2rem;
    }

    .lifestyle-gallery-block {
        padding: 3rem 1rem;
    }

    .lifestyle-gallery-block__grid {
        display: block;
        columns: 2;
        column-gap: 6px;
    }

    .lifestyle-gallery-block__item {
        break-inside: avoid;
        margin-bottom: 6px;
        aspect-ratio: auto;
        border-radius: 8px;
    }

    .lifestyle-gallery-block__item img {
        height: auto;
    }

    .lifestyle-gallery-block__item:nth-child(1) {
        grid-column: auto;
    }
}

@media (max-width: 428px) {
    .lifestyle-gallery-block__title,
    .lifestyle-gallery-block__title *,
    .lifestyle-gallery-block__heading,
    .lifestyle-gallery-block__heading * {
        font-size: 32px !important;
    }
}

.lifestyle-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 13, 10, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lifestyle-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lifestyle-gallery-lightbox__img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lifestyle-gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lifestyle-gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lifestyle-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 2.25rem;
    line-height: 1;
    padding-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.lifestyle-gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lifestyle-gallery-lightbox__nav--prev {
    left: 1.25rem;
}

.lifestyle-gallery-lightbox__nav--next {
    right: 1.25rem;
}

@media (max-width: 600px) {
    .lifestyle-gallery-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1.75rem;
    }

    .lifestyle-gallery-lightbox__nav--prev {
        left: 0.5rem;
    }

    .lifestyle-gallery-lightbox__nav--next {
        right: 0.5rem;
    }
}

.lifestyle-gallery-block__description,
.lifestyle-gallery-block__description *,
.lifestyle-gallery-block__info,
.lifestyle-gallery-block__info * {
    font-family: 'Montserrat', sans-serif;
}
