:root {
    --primary-color: #0b6a52;
    --frame-border-color: #d6a83b;
    --black:#000;

    --gray-dark: #222;
    --gray-medium: #6a6a6a;
    --gray-light: #f8f8f8;

}


.primary-color {
    color: (--primary-color);
}

.frame-border-color {
    color: (--frame-border-color);
}

.gray-dark {
    color: (--gray-dark);
}

.gray-medium {
    color: (--gray-medium);
}

.gray-light {
    color: (--gray-light);
}
.black{
    color: (--black);
}

/* Reset & full-screen non-scrollable */
html,
body {
    margin: 0;
    padding: 0;
    /* non-scrollable */
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #f8f8f8;
    color: var(--black);
}

/* small utilities to avoid selection artifacts on full-screen */
* {
    box-sizing: border-box;
}

/* Background brick texture: replace with your brick image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/tiles.webp");
    /* <-- replace with your brick background image */
    background-size: cover;
    background-position: center;
    opacity: 0.16;
}

/* subtle overlay so text is readable on background */
/* body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
    mix-blend-mode: normal;
} */

/* App container */
.wrap {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* header, main, footer area (footer optional) */
    grid-template-columns: 1fr;
    align-items: stretch;
}

/* top header row */
header {
    padding: 22px 40px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    pointer-events: auto;
    position: relative;
}

/* left logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 150px;
    /* tuned to look like the screenshot */
    width: auto;
    display: block;
}

.logo small {
    display: block;
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 4px;
}

/* top-right nav */
nav.top-nav,
nav.exhibit-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);

    /* green-ish like screenshot */
    a {
        text-decoration: none;
        color: inherit;

        &.active {
            font-weight: bold;
            text-decoration: underline;
        }
    }
}



/* Main center area: three columns */
main {
    /* height: calc(100% - 120px); subtract header & footer spacing */
    height: fit-content;
    display: grid;
    grid-template-columns: 28% 35% 28%;
    gap: 20px;
    /* align-items: center; */
    justify-items: center;
    padding: 10px 40px;
    box-sizing: border-box;
    pointer-events: auto;
    width: calc(100% - 22%);
    margin: 0 auto;
    position: relative;

    .home-text {
        width: calc(100% - 70%);
        text-align: justify;

        a {
            text-decoration: none;
            color: inherit;
        }
        h1{
            font-size: inherit;
            margin-bottom: 6px;
        }
    }
}

main:has(.home-text) {
    width: 100%;
    display: flex;
    justify-content: center;

    p {
        font-size: 16px;
        line-height: 1.6;
        margin-top: 6px;
        margin-bottom: 20px;
    }
}

/* Left column text block */
.about {
    width: 100%;
    max-width: 420px;
    /* keeps lines readable */
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
    text-align: justify;
}

.about h2{
    font-size: inherit;
    margin-bottom: 3px;
}
.about p {
    margin: 0 0 16px 0;
}

/* Center: framed artwork */
.art-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.frame {
    border: 4px solid var(--frame-border-color);
    /* golden frame */
    background: white;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
    padding: 6px;
    /* width: 100%; */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: calc(100vh - 220px);
}

/* Right column small tagline and social icons bottom-right */
.right-column {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    gap: 14px;
}

.tagline {
    font-size: 14px;
    color: var(--black);
    text-align: left;
    line-height: 1.5;
}

main.exhibits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100% - 60px);
    width: calc(100% - 22%);
}

.image-frame {
    border: 3px solid var(--frame-border-color);
    /* max-width: 80%; */
    background: white;
    overflow: hidden;
    position: relative;
    width: 1058px;
    height: 650px;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.coming-soon {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b5b5b5;
  background: #f8f8f8;
}

.slider-container {
    display: flex;
    transition: transform 0.7s ease-in-out;
    width: 100%;
    height: 100%;
}

.slider-container img {
    max-width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 24px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
    transition: background 0.3s;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
  

    .copyright {
        font-size: 12px;
        color: #555;

        a {
            color: var(--primary-color);
            text-decoration: none;
        }
    }
}

/* bottom-right social icons block positioned absolute */
.social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.social svg {
    width: 28px;
    height: 28px;
    fill: var(--gray-dark);
    opacity: 0.85;
}



/* Inbox page  */
/* Left section (text + form) */

.contact-form p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--black);
}

.contact-form a {
    color: #003d2b;
    font-weight: 600;
    text-decoration: none;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    border: none;
    border-bottom: 1px solid #003d2b;
    outline: none;
    padding: 6px 2px;
    font-size: 0.95rem;
    background: transparent;
    resize: none;
}

.contact-form button {
    width: 100px;
    margin-top: 10px;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: var(--primary-color);
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: bold;
    text-align: left;
}

.contact-form button:hover {
    color: #007f56;
}

/* Center section (map) */
.map {
    width: 100%;
    border: 2px solid #d6a83b;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Right section (connect info) */
.contact-info {
    text-align: left;
    font-size: 0.9rem;
}

.contact-info h4 {
    margin-bottom: 10px;
    color: #003d2b;
    text-transform: uppercase;
}

.contact-info p {
    line-height: 1.6;
    color: #333;
}

@media (min-width:1101px) and (max-width:1600px) {
    main {
        /* height: calc(100% - 120px); subtract header & footer spacing */
        grid-template-columns: 38% 45% 38%;
    }
}

/* Responsive: keep non-scroll but adapt columns */
@media (max-width:1100px) {

    html,
    body {
        overflow: auto;
        padding-bottom: 100px;
    }

    main {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
        width: 100%;
    }

    main.exhibits {
        width: 100%;
    }


    nav.exhibit-nav {
        /* flex-direction: column; */
        flex-wrap: wrap;
        a {
            border: 1px solid var(--frame-border-color);
            padding: 6px 12px;
            border-radius: 4px;
            width: fit-content;
            text-align: center;
        }
    }

    body.home {
        background: unset;
    }

    body.home::after {
        background: unset
    }

    .home-text {
        /* width: 100% !important; */

        p {
            font-size: 15px !important;
            line-height: 1.4 !important;
        }
    }

    .about,
    .art-frame,
    .right-column {
        max-width: 900px;
    }

    header {
        padding: 14px;
    }

    .logo img {
        height: 54px;
    }

    .image-frame {
        max-width: 100%;
        width: unset;
    }

    .frame img {
        max-height: calc(100vh - 200px);
    }

    .contact-form {
        width: 100%;
    }

    .map {
        min-height: 500px;
        margin-top: 20px;
    }

    .slider-container {
        height: 600px;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        left: 16px;
        right: 16px;
        text-align: center;
        gap: 10px;
    }

    .social {
        right: 16px;
        bottom: 12px;
    }
}

@media (max-width:1800px) {
    section.home-text {
        width: calc(100% - 54%);
    }
        main {
        grid-template-columns: 40% 45% 40%;
    }
}
@media (max-width:1200px) {
    section.home-text {
        width: calc(100% - 45%);
    }
}
@media (max-width:800px) {
    section.home-text {
        width: 100%;
    }
}
/* Prevent text selection flicker */
::selection {
    background: transparent;
}
@media (min-width:1900px) {
    html,body{
        height: 100%;
         overflow: hidden;
    }
    .footer {
        position: fixed;
        margin-top: unset;
        bottom: 18px;
        left: 40px;
        right: 40px;
        z-index: 10;
        padding: 0;
    }
    .image-frame {
        height: 590px;
    }
}