/* ==========================================================
   Saint Elmo Colorado — consolidated site stylesheet

   Shared layout, desktop sidebar, responsive navigation,
   Home page, photo pages, Lost Cabins landing page, and
   Berry Hunt galleries.
   ========================================================== */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* ---------- Desktop sidebar navigation ---------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 200px;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 20px;
    background: #000000;
    color: #ffffff;
}

.sidebar h2 {
    margin: 0 0 42px;
    font-size: 22px;
    font-weight: normal;
}

.sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar li ul {
    margin-top: 8px;
    padding-left: 15px;
    border-left: 1px solid #555555;
}

.sidebar li ul li {
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    padding: 5px 7px;
    border-radius: 3px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.sidebar a:hover {
    background: #444444;
}

.sidebar a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
}

/* ---------- Main page container ---------- */

.content {
    max-width: 1200px;
    margin-left: 200px;
    padding: 35px 45px;
}

.content.home-page {
    max-width: none;
    min-height: 100vh;
    margin-left: 200px;
    padding: 0;
    background: #383838;
    color: #ffffff;
}

.content h1 {
    margin-top: 0;
    text-align: center;
}

.content figure {
    margin: 25px auto;
    text-align: center;
}

.content figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.content figcaption {
    margin-top: 8px;
    color: #666666;
    font-style: italic;
}

.content iframe {
    max-width: 100%;
    border: 0;
}

/* ---------- Home page header ---------- */

.hero {
    display: grid;
    min-height: 385px;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 30px;
    padding: 40px 5%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
        url("../images/home/hero-background.png");
    background-position: center 15%;
    background-size: cover;
}

.hero-title {
    padding-top: 10px;
    text-align: center;
}

.hero-title h1 {
    margin: 15px 0 25px;
    color: #ffffff;
    font-size: 60px;
    line-height: 1.1;
}

.hero-title p {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
}

.hero-map {
    width: 300px;
    max-width: 100%;
    height: 300px;
}

.hero-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Home page two-column content ---------- */

.home-updates {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(350px, 530px);
    justify-content: center;
    gap: 32px;
    padding: 20px 30px 60px;
}

.home-photo {
    margin: 0;
}

.home-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-photo figcaption {
    margin-top: 8px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.home-news {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.45;
}

.home-news h2 {
    margin: 12px 0 22px;
    padding: 12px 0;
    border-top: 4px solid #292929;
    border-bottom: 4px solid #292929;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    line-height: 1.2;
}

.home-news p {
    margin: 14px 0;
}

/* ---------- Berry Hunt page ---------- */

.berry-page {
    min-height: 100vh;
    padding-bottom: 50px !important;
}

.berry-hero {
    padding: 35px 25px 15px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("../images/home/hero-background.png") center 35% / cover;
    color: #ffffff;
    text-align: center;
}

.berry-hero h1 {
    margin: 10px 0;
    font-size: 42px;
}

.berry-hero p {
    font-family: Georgia, "Times New Roman", serif;
}

.berry-intro {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 20px;
    color: #dddddd;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
}

/* ---------- Manual photo galleries ---------- */

.gallery-section {
    max-width: 1100px;
    margin: 35px auto 55px;
    padding: 0 20px;
}

.gallery-section h2 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #666666;
    color: #ffffff;
    font-size: 28px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #555555;
    border-radius: 4px;
    background: #222222;
}

.gallery:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.gallery-frame {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.gallery-image {
    display: block;
    width: 100%;
    height: min(68vh, 720px);
    background: #111111;
    object-fit: contain;
}

.gallery-caption {
    padding: 12px 5px 5px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.gallery-arrow {
    width: 46px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #444444;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.gallery-arrow:hover {
    background: #777777;
}

.gallery-arrow:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* ---------- Shared interior/photo page ---------- */

.content.home-page.photo-page {
    padding: 0 0 50px;
    color: #ffffff;
}

.photo-hero {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 40px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        url("../images/williamson-door.jpg");
    background-position: center 50%;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}

.photo-hero h1 {
    margin: 10px 0 20px;
    color: #ffffff;
    font-size: 42px;
    text-shadow: 2px 2px 5px #000000;
}

.photo-hero p {
    width: 35%;
    max-width: 540px;
    margin: 0 auto;
    color: #ffffff;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    text-shadow: 1px 1px 3px #000000;
}

.photo-grid {
    display: grid;
    max-width: 1100px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin: 30px auto;
    padding: 0 25px;
}

.photo-grid figure {
    margin: 0;
    padding: 10px;
    border: 1px solid #505050;
    background: #292929;
}

.photo-grid img {
    display: block;
    width: 100%;
    height: auto;
    background: #111111;
    object-fit: contain;
}

.photo-grid figcaption {
    padding: 12px 5px 5px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/* Kept for compatibility if any page still uses a separate intro block. */
.photo-intro {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 25px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

/* ---------- Special Lost Cabins landing page ---------- */

.lost-cabins-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 35px 40px;
    background-image: url("../images/williamson-door.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.lost-cabins-hero h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-family: "Comic Sans MS", Arial, sans-serif;
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px #000000;
}

.lost-cabins-hero p {
    width: auto;
    max-width: 90%;
    margin: 5px auto;
    color: #ffffff;
    font-family: "Comic Sans MS", Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    text-shadow: 1px 1px 3px #000000;
}

/* ---------- Tablet and phone navigation ---------- */

@media (max-width: 850px) {
    .sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 52px;
        overflow: visible;
        padding: 0;
        background: #000000;
    }

    .sidebar h2 {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        border: 0;
        border-radius: 0;
        background: #000000;
        color: #ffffff;
        font-family: Arial, sans-serif;
        font-size: 16px;
        text-align: left;
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: #222222;
    }

    .menu-icon {
        font-size: 27px;
        line-height: 1;
    }

    .menu-label {
        font-size: 14px;
    }

    .sidebar nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1001;
        display: none;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        padding: 12px 18px 20px;
        background: #111111;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    }

    .sidebar.is-open nav {
        display: block;
    }

    .sidebar nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sidebar nav li {
        margin-bottom: 5px;
    }

    .sidebar nav li ul {
        margin-top: 5px;
        padding-left: 18px;
        border-left: 1px solid #555555;
    }

    .sidebar nav a {
        display: block;
        padding: 9px 8px;
        color: #ffffff;
    }

    .content,
    .content.home-page {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
    }

    .hero {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-title h1 {
        font-size: 42px;
    }

    .hero-map {
        width: min(300px, 100%);
    }

    .home-updates {
        grid-template-columns: 1fr;
    }

    .home-news h2 {
        font-size: 30px;
    }

    .photo-hero p {
        width: 70%;
    }

    .lost-cabins-hero {
        width: 100%;
        height: auto;
    }
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
    .gallery-section {
        padding: 0 8px;
    }

    .gallery {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 5px;
        padding: 7px;
    }

    .gallery-arrow {
        width: 36px;
        height: 48px;
        font-size: 21px;
    }

    .gallery-image {
        height: 55vh;
    }

    .berry-hero h1,
    .photo-hero h1 {
        font-size: 30px;
    }

    .gallery-section h2 {
        font-size: 23px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    .photo-hero p {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 15px;
    }

    .hero-title h1 {
        font-size: 34px;
    }

    .content.home-page.photo-page .photo-hero {
        padding: 25px 15px;
    }

    .photo-hero p {
        font-size: 14px;
    }

    /* Keep the landing-page date/location text distinct on phones. */
    .lost-cabins-hero p {
        width: auto;
        font-size: 18px;
    }
}

/* =========================================
   LOST CABINS - MOBILE FULL-SCREEN HEADER
   ========================================= */

@media (max-width: 850px) {

    .lost-cabins-hero {
        min-height: calc(100svh - 52px);
        height: auto;
        aspect-ratio: auto;

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}


/* Lost Cabins title and text on smaller screens */

@media (max-width: 850px) {

    .lost-cabins-hero h1 {
        font-family: "Comic Sans MS", "Comic Sans", cursive;
        font-size: clamp(24px, 5vw, 42px);
        line-height: 1.3;
        max-width: 90%;
        margin: 0 auto 15px;
        text-align: center;
    }

    .lost-cabins-hero p {
        font-family: "Comic Sans MS", "Comic Sans", cursive;
        font-size: 16px;
        text-align: center;
    }
}


