/* ==========================================
   GREEN VALLEY PUBLIC SCHOOL
   OPTIMIZED PREMIUM GALLERY
   ========================================== */

:root {
    --gallery-green: #126b3a;
    --gallery-dark: #103d2b;
    --gallery-light: #edf7f0;
    --gallery-gold: #e6d29a;
    --gallery-text: #20352a;
    --gallery-muted: #718076;
    --gallery-white: #ffffff;
}

/* Base */

.premium-gallery,
.gallery-header,
.gallery-footer {
    font-family: "DM Sans", sans-serif;
}

.premium-gallery *,
.gallery-header *,
.gallery-footer * {
    box-sizing: border-box;
}

.premium-gallery img,
.gallery-header img,
.gallery-footer img {
    display: block;
    max-width: 100%;
}

.premium-gallery button,
.gallery-header button,
.gallery-footer button {
    font: inherit;
}

/* ==========================================
   HEADER
   ========================================== */

.gallery-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e6eee7;
    box-shadow: 0 4px 20px rgba(16, 61, 43, 0.06);
}

.gallery-header-container {
    width: min(100% - 48px, 1280px);
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gallery-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--gallery-dark);
    text-decoration: none;
}

.gallery-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.gallery-brand-text h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1.2;
}

.gallery-brand-text span {
    display: block;
    margin-top: 5px;
    color: #64806b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.gallery-nav a {
    position: relative;
    padding-block: 10px;
    color: #34483b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gallery-nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--gallery-green);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.gallery-nav a:hover,
.gallery-nav a.active {
    color: var(--gallery-green);
}

.gallery-nav a:hover::after,
.gallery-nav a.active::after {
    transform: scaleX(1);
}

.gallery-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 19px;
    border-radius: 4px;
    background: var(--gallery-dark);
    color: var(--gallery-white);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-header-btn:hover {
    background: var(--gallery-green);
    transform: translateY(-2px);
}

/* ==========================================
   GALLERY INTRODUCTION
   ========================================== */

.premium-gallery {
    padding: 76px 24px 42px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(237, 247, 240, 0.9),
            transparent 36%
        ),
        #ffffff;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 42px;
    text-align: center;
}

.gallery-label {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gallery-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.8;
}

.gallery-intro h1 {
    margin: 0 0 20px;
    color: var(--gallery-dark);
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.gallery-intro h1 span {
    color: var(--gallery-green);
    font-style: italic;
}

.gallery-intro p {
    max-width: 560px;
    margin-inline: auto;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ==========================================
   IMAGE SLIDER
   ========================================== */

.premium-slider {
    position: relative;
    isolation: isolate;
    width: min(100%, 1150px);
    height: clamp(400px, 48vw, 590px);
    margin-inline: auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gallery-dark);
    box-shadow: 0 20px 55px rgba(16, 61, 43, 0.16);
}

.premium-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.premium-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stronger gradient where text appears */

.premium-image-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 24, 14, 0.88) 0%,
        rgba(3, 24, 14, 0.70) 35%,
        rgba(3, 24, 14, 0.35) 65%,
        rgba(3, 24, 14, 0.08) 100%
    );
    pointer-events: none;
}

/* Text overlay */

.premium-image-content {
    position: absolute;
    z-index: 2;
    right: 12%;
    bottom: 15%;
    left: 8%;
    max-width: 650px;
    color: var(--gallery-white);
}

.premium-image-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gallery-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.premium-image-content h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.16;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.premium-image-content p {
    max-width: 460px;
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Image counter */

.premium-slide-number {
    position: absolute;
    z-index: 3;
    right: 30px;
    bottom: 28px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.premium-slide-number span {
    color: rgba(255, 255, 255, 0.8);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================
   SLIDER ARROWS
   ========================================== */

.premium-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.premium-prev {
    left: 20px;
}

.premium-next {
    right: 20px;
}

.premium-arrow:hover {
    background: #ffffff;
    color: var(--gallery-dark);
}

.premium-arrow:focus-visible,
.premium-play-button:focus-visible,
.premium-dots button:focus-visible {
    outline: 3px solid var(--gallery-gold);
    outline-offset: 4px;
}

/* ==========================================
   SLIDER CONTROLS
   ========================================== */

.premium-controls {
    width: min(100%, 1150px);
    margin: 20px auto 0;
}

.premium-progress-track {
    height: 3px;
    overflow: hidden;
    background: #e4ebe5;
}

.premium-progress-bar {
    width: 12.5%;
    height: 100%;
    background: var(--gallery-green);
    transition: width 0.3s ease;
}

.premium-control-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}

.premium-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.premium-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd9ce;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.premium-dots button.active {
    width: 28px;
    border-radius: 10px;
    background: var(--gallery-green);
}

.premium-play-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gallery-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.premium-play-button #premiumPlayIcon {
    display: grid;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #d7e3d9;
    border-radius: 50%;
    font-size: 13px;
}

/* ==========================================
   GALLERY MOTTO
   ========================================== */

.premium-gallery-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 38px;
    flex-wrap: wrap;
    width: min(100%, 1150px);
    margin: 42px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e6eee7;
}

.premium-gallery-footer span {
    color: #66806d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* ==========================================
   FOOTER
   ========================================== */

.gallery-footer {
    margin-top: 25px;
    padding: 58px 24px 20px;
    background: var(--gallery-dark);
    color: #ffffff;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
    gap: 45px;
    width: min(100%, 1150px);
    margin-inline: auto;
    padding-bottom: 38px;
}

.footer-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    object-fit: contain;
}

.footer-brand h2,
.footer-links h3,
.footer-enquiry h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    line-height: 1.4;
}

.footer-brand p,
.footer-enquiry p {
    color: #d0e0d4;
    font-size: 13px;
    line-height: 1.9;
}

.footer-location {
    margin-top: 8px;
}

.footer-links a {
    display: block;
    width: fit-content;
    margin-bottom: 13px;
    color: #d0e0d4;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gallery-gold);
}

.footer-enquiry p {
    max-width: 340px;
}

.footer-enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 22px;
    border-radius: 4px;
    background: #ffffff;
    color: var(--gallery-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-enquiry-btn:hover {
    background: var(--gallery-light);
    transform: translateY(-2px);
}

.footer-bottom {
    width: min(100%, 1150px);
    margin-inline: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.footer-bottom p {
    color: #c6d7ca;
    font-size: 12px;
    line-height: 1.8;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 950px) {
    .gallery-header-container {
        width: calc(100% - 32px);
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 14px;
        padding-block: 14px;
    }

    .gallery-nav {
        order: 3;
        width: 100%;
        gap: 22px;
        padding-top: 8px;
        border-top: 1px solid #edf1ed;
    }

    .premium-slider {
        height: 470px;
    }

    .footer-container {
        gap: 28px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {
    .gallery-header-container {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .gallery-brand {
        gap: 8px;
    }

    .gallery-brand img {
        width: 42px;
        height: 42px;
    }

    .gallery-brand-text h2 {
        font-size: 17px;
    }

    .gallery-brand-text span {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .gallery-header-btn {
        gap: 5px;
        padding: 10px 11px;
        font-size: 11px;
    }

    .gallery-nav {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .gallery-nav a {
        font-size: 11px;
    }

    .premium-gallery {
        padding: 50px 15px 30px;
    }

    .gallery-intro {
        margin-bottom: 30px;
    }

    .gallery-label {
        margin-bottom: 15px;
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .gallery-intro h1 {
        font-size: clamp(36px, 9vw, 48px);
    }

    .gallery-intro p {
        font-size: 13px;
    }

    .premium-slider {
        height: 430px;
        border-radius: 5px;
    }

    .premium-image-shade {
        background: linear-gradient(
            0deg,
            rgba(3, 24, 14, 0.96) 0%,
            rgba(3, 24, 14, 0.78) 40%,
            rgba(3, 24, 14, 0.30) 75%,
            rgba(3, 24, 14, 0.12) 100%
        );
    }

    .premium-image-content {
        right: 6%;
        bottom: 18%;
        left: 6%;
    }

    .premium-image-tag {
        margin-bottom: 12px;
        font-size: 8px;
        letter-spacing: 1.6px;
    }

    .premium-image-content h2 {
        margin-bottom: 10px;
        font-size: clamp(27px, 7vw, 36px);
    }

    .premium-image-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .premium-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .premium-prev {
        left: 10px;
    }

    .premium-next {
        right: 10px;
    }

    .premium-slide-number {
        right: 13px;
        bottom: 12px;
        font-size: 22px;
    }

    .premium-slide-number span {
        font-size: 11px;
    }

    .premium-control-bottom {
        align-items: center;
        gap: 10px;
    }

    .premium-dots {
        gap: 6px;
    }

    .premium-dots button {
        width: 7px;
        height: 7px;
    }

    .premium-dots button.active {
        width: 20px;
    }

    .premium-play-button {
        gap: 6px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .premium-play-button #premiumPlayIcon {
        width: 27px;
        height: 27px;
    }

    .premium-gallery-footer {
        gap: 13px;
        margin-top: 30px;
    }

    .premium-gallery-footer span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .gallery-footer {
        padding: 40px 20px 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
        text-align: center;
    }

    .footer-logo {
        margin-inline: auto;
    }

    .footer-links a {
        width: auto;
    }

    .footer-enquiry p {
        margin-inline: auto;
    }
}

/* Reduce unnecessary movement for users who prefer it */

@media (prefers-reduced-motion: reduce) {
    .gallery-header *,
    .premium-gallery *,
    .gallery-footer * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}