:root {
    /* fixed heights (tweak these anytime) */
    --hero-h: 38vh;
    --media-h-desktop: 320px;
    --media-h-tablet: 300px;
    --media-h-mobile: 260px;

    --collage-h-desktop: 100px;
    --collage-h-mobile: 120px;

    --brand: #a3660a;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fbfbfb;

    /* Use the same font as your main title everywhere */
    font-family: "Quattrocento", serif;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.4);
}

/* ---------- HERO ---------- */
.lg-hero {
    width: 100%;
    height: var(--hero-h);
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.lg-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- TITLE ---------- */
.lg-title-wrap {
    width: 100%;
}

.lg-title-inner {
    width: 85%;
    max-width: 1200px;
    margin: 35px auto 0 auto;
}

.lg-title {
    margin: 0;
    font-size: 34px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
}

.lg-subtitle {
    margin: 10px 0 0 0;
    font-size: 18px;
    color: #4a4a4a;
    line-height: 1.5;
}

.lg-divider {
    width: 100%;
    height: 1px;
    background: #e7e7e7;
    margin-top: 18px;
}

/* ---------- SECTIONS ---------- */
.lg-section {
    width: 100%;
    margin-bottom: 22vh;
}

.lg-section-inner {
    width: 85%;
    max-width: 1200px;
    margin: 55px auto;
}

.lg-split {
    display: flex;
    gap: 60px;
    align-items: center;
}

.lg-text {
    flex: 1;
    min-width: 320px;
}

.lg-media {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: flex-end;
}

/* fixed height for all media (images + preview video) */
.lg-media-img,
.lg-preview-video {
    width: 520px;
    max-width: 100%;
    height: var(--media-h-desktop);
    object-fit: cover;
    border-radius: 2px;
    display: block;
    background: #000;
}

.lg-h2 {
    margin: 0;
    font-size: 26px;
    color: #111;
    font-weight: 700;
}

.lg-p {
    margin: 12px 0 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: #3a3a3a;
    max-width: 560px;
}

/* Button */
.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 165px;
    height: 38px;

    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);

    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s ease-in-out;

    /* keep same font */
    font-family: "Quattrocento", serif;
}

.lg-btn:hover {
    background-color: var(--brand);
    color: #fff;
}

/* reverse layout on desktop for the 2nd block */
.lg-split.lg-reverse-desktop {
    flex-direction: row;
}

/* ---------- COLLAGE (5 per row desktop) ---------- */
.lg-collage {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 22vh;
}

.lg-collage-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

/* Square tiles */
.lg-collage-inner img {
    width: 100%;
    aspect-ratio: 1 / 1; /* makes them square */
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 2px; /* optional */
}

@media (max-width: 768px) {
    .lg-collage-inner {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- MAP ---------- */
.lg-map {
    width: 100%;
    margin: 45px 0 60px 0;
}

.lg-map-inner {
    width: 85%;
    max-width: 1200px;
    height: 46vh;
    min-height: 280px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-radius: 2px;
}

.lg-map-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- FULLSCREEN VIDEO MODAL ---------- */
.lg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.lg-modal.is-open {
    display: block;
}

/* light black borders/overlay */
.lg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.lg-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
}

/* close button */
.lg-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-family: "Quattrocento", serif;
    z-index: 2;
}

/* portrait frame centered with soft borders */
.lg-modal-frame {
    width: min(520px, 88vw);
    height: min(92vh, 900px);
    background: rgba(0, 0, 0, 0.35); /* “light black borders” feel */
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lg-fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep portrait video with borders around */
    border-radius: 10px;
    background: #000;
}

/* lock scroll when modal open */
body.lg-lock {
    overflow: hidden;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 1024px) {
    .lg-title-inner,
    .lg-section-inner,
    .lg-map-inner {
        width: 90%;
    }

    .lg-split {
        gap: 35px;
    }

    .lg-media-img,
    .lg-preview-video {
        height: var(--media-h-tablet);
    }

    .lg-title {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    .lg-hero {
        height: 34vh;
        min-height: 240px;
    }

    .lg-title-inner {
        margin-top: 22px;
    }

    .lg-title {
        font-size: 22px;
    }

    .lg-subtitle {
        font-size: 14px;
    }

    .lg-section-inner {
        margin: 35px auto;
    }

    .lg-split {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    /* on mobile always show media first like your screenshot */
    .lg-media {
        order: -1;
        width: 100%;
        justify-content: flex-start;
    }

    .lg-media-img,
    .lg-preview-video {
        width: 100%;
        height: var(--media-h-mobile);
    }

    .lg-p {
        max-width: 100%;
    }

    .lg-collage-inner img {
        height: var(--collage-h-mobile);
    }

    .lg-map-inner {
        height: 40vh;
        min-height: 240px;
    }

    .lg-modal-content {
        padding: 16px;
    }

    .lg-modal-frame {
        width: min(420px, 92vw);
        height: min(90vh, 860px);
        padding: 12px;
    }
}

@media screen and (max-width: 768px) {
    .lg-split {
        flex-direction: column !important;
        gap: 18px;
        align-items: flex-start;
    }

    /* make sure BOTH image and text take full width */
    .lg-text,
    .lg-media {
        width: 100%;
        min-width: 0;
    }

    /* always show media first on mobile */
    .lg-media {
        order: -1;
        justify-content: flex-start;
    }

    .lg-media-img,
    .lg-preview-video {
        width: 100%;
        height: var(--media-h-mobile);
    }
}

/* ---------- IMAGE MODAL ---------- */
.lg-img-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.lg-img-modal.is-open {
    display: block;
}

.lg-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.lg-img-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.lg-img-frame {
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.35);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#fullscreenImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.lg-img-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-family: "Quattrocento", serif;
    z-index: 2;
}
