
/* =========================================================
   TAKAKUNDA PRIMARY SCHOOL
   GALLERY PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.school-gallery-hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    position: relative;

    background:
        url("../Images/kimberly-farmer-lUaaKCUANVI-unsplash.jpg")
        center / cover no-repeat;

    overflow: hidden;
}

.school-gallery-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 20, 12, .92),
            rgba(4, 20, 12, .65),
            rgba(4, 20, 12, .25)
        );
}

.school-gallery-hero-content {
    position: relative;

    z-index: 2;

    width: min(1200px, 84%);

    margin: auto;

    color: #fff;
}

.school-gallery-eyebrow {
    display: block;

    color: #d5bd28;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.school-gallery-hero h1 {
    max-width: 850px;

    font-size: clamp(52px, 7vw, 90px);

    line-height: .98;

    margin: 0 0 25px;

    font-weight: 700;
}

.school-gallery-hero p {
    max-width: 680px;

    color: rgba(255,255,255,.85);

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 35px;
}

.school-gallery-hero-actions {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.gallery-primary-btn,
.gallery-secondary-btn,
.gallery-outline-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 700;

    transition: .3s ease;
}

.gallery-primary-btn {
    background: #c2a607;

    color: #fff;
}

.gallery-primary-btn:hover {
    background: #a99000;

    transform: translateY(-3px);
}

.gallery-secondary-btn {
    color: #fff;

    border: 1px solid rgba(255,255,255,.5);
}

.gallery-secondary-btn:hover {
    background: #fff;

    color: #04662d;
}

.gallery-outline-btn {
    border: 1px solid #04662d;

    color: #04662d;
}

.gallery-outline-btn:hover {
    background: #04662d;

    color: #fff;
}


/* =========================================================
   WELCOME
========================================================= */

.gallery-welcome {
    padding: 110px 8%;

    background: #fff;
}

.gallery-welcome-container {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 90px;

    align-items: center;
}

.gallery-section-label {
    color: #c2a607;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2.5px;
}

.gallery-welcome-content h2 {
    font-size: clamp(36px, 4vw, 58px);

    line-height: 1.08;

    color: #172019;

    margin: 15px 0 25px;
}

.gallery-welcome-content p {
    color: #68716c;

    line-height: 1.85;

    max-width: 700px;

    margin-bottom: 18px;
}


/* =========================================================
   STATS
========================================================= */

.gallery-stat-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.gallery-stat-card {
    min-height: 160px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: #f7f8f6;

    border: 1px solid #e8ebe7;

    transition: .3s ease;
}

.gallery-stat-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.gallery-stat-card strong {
    color: #04662d;

    font-size: 38px;
}

.gallery-stat-card span {
    color: #59615c;

    font-weight: 600;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.gallery-section-heading {
    max-width: 1250px;

    margin: 0 auto 50px;

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 40px;
}

.gallery-section-heading.centered {
    display: block;

    text-align: center;
}

.gallery-section-heading span {
    color: #c2a607;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.5px;
}

.gallery-section-heading h2 {
    color: #172019;

    font-size: clamp(34px, 4vw, 54px);

    line-height: 1.1;

    margin: 12px 0 0;
}

.gallery-section-heading p {
    max-width: 520px;

    color: #68716c;

    line-height: 1.8;
}

.gallery-section-heading.centered p {
    margin: 15px auto 0;
}


/* =========================================================
   FEATURED GALLERY
========================================================= */

.gallery-feature-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-feature-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    grid-template-rows: 300px 300px;

    gap: 16px;
}

.gallery-feature-main {
    grid-row: span 2;

    position: relative;

    overflow: hidden;

    border-radius: 18px;
}

.gallery-feature-main img,
.gallery-feature-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .6s ease;
}

.gallery-feature-main:hover img,
.gallery-feature-card:hover img {
    transform: scale(1.06);
}

.gallery-feature-overlay {
    position: absolute;

    inset: auto 0 0;

    padding: 40px;

    color: #fff;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.9)
        );
}

.gallery-feature-overlay span,
.gallery-feature-card span {
    color: #d5bd28;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}

.gallery-feature-overlay h3 {
    font-size: 32px;

    margin: 10px 0;
}

.gallery-feature-overlay p {
    max-width: 500px;

    color: rgba(255,255,255,.8);
}

.gallery-feature-card {
    position: relative;

    overflow: hidden;

    border-radius: 18px;
}

.gallery-feature-card > div {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px;

    color: #fff;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.85)
        );
}

.gallery-feature-card h3 {
    margin: 7px 0 0;

    font-size: 20px;
}


/* =========================================================
   GALLERY EXPLORER
========================================================= */

.gallery-explorer {
    padding: 110px 8%;

    background: #fff;
}

.gallery-filter-bar {
    max-width: 1200px;

    margin: 0 auto 45px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}

.gallery-filter-btn {
    border: 1px solid #dfe4df;

    background: #fff;

    color: #47514b;

    padding: 12px 20px;

    border-radius: 50px;

    cursor: pointer;

    font-family: inherit;

    font-weight: 600;

    transition: .25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: #04662d;

    border-color: #04662d;

    color: #fff;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.gallery-photo-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.gallery-photo-card {
    overflow: hidden;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(0,0,0,.06);

    transition: .35s ease;
}

.gallery-photo-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.12);
}

.gallery-photo-open {
    border: 0;

    padding: 0;

    width: 100%;

    display: block;

    background: none;

    cursor: pointer;

    text-align: left;
}

.gallery-photo-open > img {
    width: 100%;

    height: 270px;

    object-fit: cover;

    display: block;

    transition: .5s ease;
}

.gallery-photo-card:hover .gallery-photo-open > img {
    transform: scale(1.05);
}

.gallery-photo-caption {
    padding: 18px 20px 22px;
}

.gallery-photo-caption span {
    color: #c2a607;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.gallery-photo-caption h3 {
    color: #172019;

    font-size: 17px;

    margin: 7px 0 0;
}


/* =========================================================
   STORY SECTION
========================================================= */

.gallery-story-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-story-container {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: .85fr 1.15fr;

    align-items: center;

    gap: 80px;
}

.gallery-story-content span,
.gallery-community-content span,
.gallery-submit-content span {
    color: #c2a607;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.5px;
}

.gallery-story-content h2,
.gallery-community-content h2,
.gallery-submit-content h2 {
    color: #172019;

    font-size: clamp(36px, 4vw, 55px);

    line-height: 1.08;

    margin: 15px 0 25px;
}

.gallery-story-content p,
.gallery-community-content p,
.gallery-submit-content p {
    color: #68716c;

    line-height: 1.85;

    margin-bottom: 25px;
}

.gallery-story-image img,
.gallery-community-image img {
    width: 100%;

    height: 560px;

    object-fit: cover;

    border-radius: 20px;
}


/* =========================================================
   CLUBS
========================================================= */

.gallery-category-section {
    padding: 110px 8%;

    background: #fff;
}

.gallery-mini-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.gallery-mini-card {
    overflow: hidden;

    border-radius: 16px;

    background: #f7f8f6;
}

.gallery-mini-card img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    display: block;
}

.gallery-mini-card h3 {
    padding: 20px;

    color: #04662d;

    margin: 0;
}


/* =========================================================
   LEADERSHIP
========================================================= */

.gallery-dark-section {
    padding: 110px 8%;

    background:
        linear-gradient(
            135deg,
            #05351d,
            #021d10
        );

    color: #fff;
}

.gallery-section-heading.light h2 {
    color: #fff;
}

.gallery-section-heading.light p {
    color: rgba(255,255,255,.7);
}

.gallery-leadership-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.gallery-leadership-card {
    position: relative;

    height: 450px;

    overflow: hidden;

    border-radius: 18px;
}

.gallery-leadership-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.gallery-leadership-card:hover img {
    transform: scale(1.06);
}

.gallery-leadership-card > div {
    position: absolute;

    bottom: 0;

    left: 0;
    right: 0;

    padding: 30px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.9)
        );
}

.gallery-leadership-card span {
    color: #d5bd28;

    font-weight: 700;
}

.gallery-leadership-card h3 {
    margin: 7px 0 0;

    font-size: 25px;
}


/* =========================================================
   EVENTS
========================================================= */

.gallery-events-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-event-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.gallery-event-card {
    overflow: hidden;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.07);
}

.gallery-event-card img {
    width: 100%;

    height: 260px;

    object-fit: cover;

    display: block;
}

.gallery-event-content {
    padding: 25px;
}

.gallery-event-content span {
    color: #c2a607;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.gallery-event-content h3 {
    color: #04662d;

    margin: 8px 0;
}

.gallery-event-content p {
    color: #68716c;

    line-height: 1.7;
}


/* =========================================================
   COMMUNITY
========================================================= */

.gallery-community-section {
    padding: 110px 8%;

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    align-items: center;

    gap: 80px;

    background: #fff;
}

.gallery-community-image img {
    height: 550px;
}


/* =========================================================
   FACILITIES
========================================================= */

.gallery-facilities-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-facility-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.gallery-facility-card {
    position: relative;

    min-height: 390px;

    overflow: hidden;

    border-radius: 18px;
}

.gallery-facility-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.gallery-facility-card:hover img {
    transform: scale(1.05);
}

.gallery-facility-card > div {
    position: absolute;

    bottom: 0;

    left: 0;
    right: 0;

    padding: 28px;

    color: #fff;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.85)
        );
}

.gallery-facility-card h3 {
    margin: 0 0 5px;
}

.gallery-facility-card span {
    color: #d5bd28;

    font-size: 12px;
}


/* =========================================================
   BEFORE & AFTER
========================================================= */

.gallery-before-after {
    padding: 110px 8%;

    background: #fff;
}

.gallery-before-after-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.gallery-before-card {
    position: relative;

    overflow: hidden;

    border-radius: 18px;
}

.gallery-before-card span {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 2;

    padding: 8px 14px;

    background: #04662d;

    color: #fff;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 700;
}

.gallery-before-card img {
    width: 100%;

    height: 450px;

    object-fit: cover;

    display: block;
}


/* =========================================================
   VIDEO GALLERY
========================================================= */

.gallery-video-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-video-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.gallery-video-card {
    overflow: hidden;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.07);
}

.gallery-video-thumbnail {
    position: relative;

    height: 280px;

    overflow: hidden;
}

.gallery-video-thumbnail img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.gallery-play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    border: 0;

    border-radius: 50%;

    background: #c2a607;

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}

.gallery-video-info {
    padding: 25px;
}

.gallery-video-info span {
    color: #c2a607;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.gallery-video-info h3 {
    color: #04662d;

    margin: 8px 0 0;
}


/* =========================================================
   ANNUAL HIGHLIGHTS
========================================================= */

.gallery-annual-section {
    padding: 130px 8%;

    background:
        linear-gradient(
            rgba(4,9,30,.83),
            rgba(4,9,30,.83)
        ),
        url("../Images/kimberly-farmer-lUaaKCUANVI-unsplash.jpg")
        center / cover no-repeat;

    color: #fff;

    text-align: center;
}

.gallery-annual-content {
    max-width: 800px;

    margin: auto;
}

.gallery-annual-content span {
    color: #d5bd28;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}

.gallery-annual-content h2 {
    font-size: clamp(42px, 5vw, 68px);

    margin: 15px 0;
}

.gallery-annual-content p {
    color: rgba(255,255,255,.8);

    line-height: 1.8;

    margin-bottom: 30px;
}


/* =========================================================
   DOWNLOAD & SHARE
========================================================= */

.gallery-share-section {
    padding: 110px 8%;

    background: #fff;
}

.gallery-share-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.gallery-share-card {
    padding: 40px 30px;

    border: 1px solid #e4e8e4;

    border-radius: 18px;

    text-align: center;

    transition: .3s;
}

.gallery-share-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.08);
}

.gallery-share-icon {
    width: 65px;
    height: 65px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eef5f0;

    color: #04662d;

    font-size: 25px;
}

.gallery-share-card h3 {
    color: #172019;

    margin: 20px 0 10px;
}

.gallery-share-card p {
    color: #68716c;

    line-height: 1.7;
}


/* =========================================================
   PHOTO SUBMISSION
========================================================= */

.gallery-submit-section {
    padding: 110px 8%;

    background: #f7f8f6;
}

.gallery-submit-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 80px;

    align-items: start;
}

.gallery-submit-content {
    padding-top: 20px;
}

.gallery-submit-note {
    padding: 18px;

    background: #fff;

    border-left: 4px solid #c2a607;

    font-size: 14px;
}

.gallery-submit-form {
    padding: 40px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.07);
}

.gallery-form-group {
    margin-bottom: 20px;
}

.gallery-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #253028;

    font-size: 14px;

    font-weight: 600;
}

.gallery-form-group input,
.gallery-form-group select {
    width: 100%;

    min-height: 50px;

    padding: 0 15px;

    border: 1px solid #dce1dd;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    background: #fff;

    box-sizing: border-box;
}

.gallery-form-group input:focus,
.gallery-form-group select:focus {
    border-color: #04662d;

    box-shadow:
        0 0 0 3px rgba(4,102,45,.08);
}

.gallery-consent {
    margin: 20px 0;
}

.gallery-consent label {
    display: flex;

    gap: 10px;

    color: #68716c;

    font-size: 13px;

    line-height: 1.6;
}

.gallery-consent input {
    margin-top: 4px;
}

.gallery-submit-btn {
    width: 100%;

    min-height: 54px;

    border: 0;

    border-radius: 7px;

    background: #04662d;

    color: #fff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.gallery-submit-btn:hover {
    background: #034c21;
}

.gallery-submit-message {
    margin-top: 15px;

    text-align: center;

    font-size: 14px;

    color: #04662d;
}


/* =========================================================
   FAQ
========================================================= */

.gallery-faq-section {
    padding: 110px 8%;

    background: #fff;
}

.gallery-faq-list {
    max-width: 950px;

    margin: auto;
}

.gallery-faq-item {
    border-bottom: 1px solid #e3e7e3;
}

.gallery-faq-question {
    width: 100%;

    padding: 25px 5px;

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    text-align: left;

    cursor: pointer;

    color: #172019;

    font-family: inherit;

    font-size: 17px;

    font-weight: 600;
}

.gallery-faq-question b {
    font-size: 25px;

    color: #04662d;

    transition: .3s;
}

.gallery-faq-item.open
.gallery-faq-question b {
    transform: rotate(45deg);
}

.gallery-faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height .35s ease;
}

.gallery-faq-answer p {
    padding: 0 5px 25px;

    margin: 0;

    color: #68716c;

    line-height: 1.8;
}


/* =========================================================
   FINAL CTA
========================================================= */

.gallery-final-cta {
    padding: 120px 8%;

    text-align: center;

    color: #fff;

    background:
        linear-gradient(
            rgba(4,9,30,.86),
            rgba(4,9,30,.86)
        ),
        url("../Images/kimberly-farmer-lUaaKCUANVI-unsplash.jpg")
        center / cover no-repeat;
}

.gallery-final-cta > div {
    max-width: 800px;

    margin: auto;
}

.gallery-final-cta span {
    color: #d5bd28;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}

.gallery-final-cta h2 {
    font-size: clamp(42px, 5vw, 65px);

    margin: 15px 0;
}

.gallery-final-cta p {
    color: rgba(255,255,255,.8);

    line-height: 1.8;

    margin-bottom: 30px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    padding: 30px;

    display: none;

    align-items: center;

    justify-content: center;

    background: rgba(3,10,7,.94);

    backdrop-filter: blur(8px);
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-close {
    position: fixed;

    top: 25px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: 1px solid rgba(255,255,255,.3);

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #fff;

    font-size: 30px;

    cursor: pointer;
}

.gallery-lightbox-content {
    max-width: 1100px;

    max-height: 90vh;

    width: 100%;

    display: grid;

    grid-template-columns: 1fr 300px;

    gap: 25px;

    align-items: center;
}

.gallery-lightbox-content > img {
    width: 100%;

    max-height: 80vh;

    object-fit: contain;

    border-radius: 10px;
}

.gallery-lightbox-details {
    color: #fff;
}

.gallery-lightbox-details span {
    color: #d5bd28;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}

.gallery-lightbox-details h3 {
    font-size: 28px;

    margin: 10px 0 25px;
}

.gallery-lightbox-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.gallery-lightbox-btn {
    padding: 12px 18px;

    border: 1px solid rgba(255,255,255,.3);

    background: rgba(255,255,255,.08);

    color: #fff;

    border-radius: 6px;

    text-decoration: none;

    cursor: pointer;

    font-family: inherit;

    font-weight: 600;
}
/* =========================================================
   RESPONSIVE GALLERY PAGE
========================================================= */

.gallery-welcome-container > *,
.gallery-story-container > *,
.gallery-community-section > *,
.gallery-submit-container > *,
.gallery-lightbox-content > * {
    min-width: 0;
}

.gallery-feature-card img,
.gallery-photo-open img,
.gallery-mini-card img,
.gallery-leadership-card img,
.gallery-event-card img,
.gallery-facility-card img,
.gallery-before-card img,
.gallery-video-thumbnail img,
.gallery-story-image img,
.gallery-community-image img {
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1000px) {
    .gallery-welcome-container,
    .gallery-story-container,
    .gallery-community-section,
    .gallery-submit-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .gallery-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 280px 240px;
    }

    .gallery-feature-main {
        grid-row: span 2;
    }

    .gallery-photo-grid,
    .gallery-leadership-grid,
    .gallery-event-grid,
    .gallery-facility-grid,
    .gallery-video-grid,
    .gallery-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-lightbox-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 18px;
    }

    .gallery-story-image img,
    .gallery-community-image img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .gallery-welcome,
    .gallery-feature-section,
    .gallery-explorer,
    .gallery-story-section,
    .gallery-category-section,
    .gallery-dark-section,
    .gallery-events-section,
    .gallery-community-section,
    .gallery-facilities-section,
    .gallery-before-after,
    .gallery-video-section,
    .gallery-annual-section,
    .gallery-share-section,
    .gallery-submit-section,
    .gallery-faq-section {
        padding-block: 68px;
    }

    .gallery-welcome-container,
    .gallery-story-container,
    .gallery-community-section,
    .gallery-submit-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .school-gallery-hero {
        min-height: 620px;
        min-height: 80svh;
        padding: 110px 20px 60px;
        background-position: 60% center;
    }

    .school-gallery-hero-content {
        width: 100%;
    }

    .school-gallery-hero h1 {
        font-size: clamp(38px, 9vw, 60px);
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .school-gallery-hero p {
        font-size: 16px;
        line-height: 1.7;
    }

    .school-gallery-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-primary-btn,
    .gallery-secondary-btn,
    .gallery-outline-btn,
    .gallery-submit-btn {
        min-height: 48px;
    }

    .gallery-welcome-content p,
    .gallery-section-heading p,
    .gallery-feature-overlay p,
    .gallery-annual-content p {
        max-width: 100%;
    }

    .gallery-stat-grid,
    .gallery-photo-grid,
    .gallery-leadership-grid,
    .gallery-event-grid,
    .gallery-facility-grid,
    .gallery-before-after-grid,
    .gallery-video-grid,
    .gallery-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 230px 190px;
        gap: 10px;
    }

    .gallery-feature-main {
        grid-row: span 2;
    }

    .gallery-filter-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter-btn {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .gallery-photo-open > img,
    .gallery-event-card img,
    .gallery-mini-card img,
    .gallery-video-thumbnail {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .gallery-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-leadership-card {
        height: auto;
        min-height: 340px;
    }

    .gallery-facility-card {
        min-height: 320px;
    }

    .gallery-before-card img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .gallery-play-button {
        width: 56px;
        height: 56px;
    }

    .gallery-submit-form {
        padding: 28px 22px;
    }

    .gallery-lightbox {
        align-items: flex-start;
        overflow-y: auto;
        padding: 64px 16px 20px;
    }

    .gallery-lightbox-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox-content {
        grid-template-columns: minmax(0, 1fr);
        max-height: none;
        gap: 16px;
        margin: auto;
    }

    .gallery-lightbox-content > img {
        width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }

    .gallery-lightbox-details {
        padding-bottom: 10px;
    }

    .gallery-lightbox-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .gallery-welcome,
    .gallery-feature-section,
    .gallery-explorer,
    .gallery-story-section,
    .gallery-category-section,
    .gallery-dark-section,
    .gallery-events-section,
    .gallery-community-section,
    .gallery-facilities-section,
    .gallery-before-after,
    .gallery-video-section,
    .gallery-annual-section,
    .gallery-share-section,
    .gallery-submit-section,
    .gallery-faq-section {
        padding: 56px 16px;
    }

    .school-gallery-hero {
        min-height: 590px;
        min-height: 82svh;
        padding-inline: 16px;
    }

    .school-gallery-eyebrow {
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .school-gallery-hero h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .school-gallery-hero p {
        font-size: 15px;
    }

    .school-gallery-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 340px);
    }

    .school-gallery-hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .gallery-welcome-content h2,
    .gallery-section-heading h2,
    .gallery-annual-content h2,
    .gallery-final-cta h2 {
        font-size: clamp(29px, 8vw, 38px);
        line-height: 1.12;
    }

    .gallery-stat-grid,
    .gallery-photo-grid,
    .gallery-feature-grid,
    .gallery-mini-grid,
    .gallery-leadership-grid,
    .gallery-event-grid,
    .gallery-facility-grid,
    .gallery-before-after-grid,
    .gallery-video-grid,
    .gallery-share-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-feature-grid {
        grid-template-rows: repeat(3, 220px);
    }

    .gallery-feature-main {
        grid-row: auto;
    }

    .gallery-stat-card {
        min-height: 120px;
    }

    .gallery-photo-open > img,
    .gallery-mini-card img,
    .gallery-event-card img,
    .gallery-before-card img,
    .gallery-video-thumbnail {
        aspect-ratio: 16 / 10;
    }

    .gallery-leadership-card {
        min-height: 0;
    }

    .gallery-share-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .gallery-share-icon {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .gallery-submit-form {
        padding: 22px 18px;
    }

    .gallery-submit-btn {
        width: 100%;
    }

    .gallery-faq-question {
        gap: 12px;
        padding: 18px;
    }

    .gallery-lightbox-content > img {
        max-height: 52vh;
    }

    .gallery-lightbox-btn {
        flex: 1 1 130px;
        min-height: 44px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-gallery-hero *,
    .gallery-welcome *,
    .gallery-feature-section *,
    .gallery-explorer *,
    .gallery-lightbox *,
    .gallery-final-cta * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}