/*
************************
    MEDIA BREAKPOINTS
************************
*/

/* 
xxs media breakpoint
*/
@media screen and (min-width: 0) {

    main > *:not(:last-child) {
        margin-bottom: 40px;
    }

    .hero-section h1 {
        text-align: start;
    }

    .hero-section .right-column {
        position: relative;
        width: 100%;
        height: 100%;
        aspect-ratio: 3/2;
    }

    .hero-section .right-column .hero-image {
        width: 100%;
        height: 100%;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: var(--lg-border-radius);
    }

    .hero-section .school-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        column-gap: 18px;
        row-gap: 8px;
        margin: 0 12px 10px;
    }
     
    .hero-section .school-info__wrapper svg {
        height: 18px;
        width: auto;
    }

    .hero-section .school-info__wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        transition: color 0.3s ease;
    }
    
    .hero-section .school-info__wrapper a {
        transition: color 0.3s ease;
    }

    .hero-section .school-info__wrapper .address {
        font-size: var(--sm-size);
        color: var(--text-black);
    }

    .hero-section .school-info__wrapper .phone {
        font-size: var(--md-size);
        color: var(--text-black);
        font-weight: 600;
    }

    .hero-section .school-info__wrapper:hover a {
        color: var(--primary-green);
    }

    .welcome-card__author-name,
    .welcome-card__author-name span {
        font-size: var(--md-size);
        text-transform: none !important;
    }
    
    .welcome-card__author-name strong {
        font-weight: 600 !important;
    }
    
    .welcome-card__author-name span {
        text-transform: none !important
    }

    .welcome-card__author-role {
        text-transform: none;
    }

    .school-resources {
        display: grid;
        grid-template-rows: auto;
        gap: 20px;
    }

    .media-gallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .media-gallery-wrapper {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }

    .media-gallery-wrapper img {
        border-radius: var(--sm-border-radius);
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 3/2;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .media-gallery-wrapper img:hover {
        transform: scale(1.05);
    }

    .media-gallery h2 {
        margin: 0;
        color: var(--text-black);
        font-weight: 600;
    }



    .info-tabs {
        width: 100%;
        margin-bottom: 30px;
    }

    .info-tabs__nav {
        display: flex;
        border: 1px solid var(--primary-green);
        border-radius: var(--lg-border-radius);
        overflow: hidden;
        background-color: white;
        margin-bottom: 24px;
    }

    .info-tabs__button {
        flex: 1;
        padding: 16px;
        background-color: transparent;
        border: none;
        border-right: 1.5px solid var(--primary-green);
        color: var(--text-light-gray);
        font-weight: 600;
        font-size: var(--sm-size);
        text-transform: uppercase;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-align: center;
        font-family: futura-pt;
    }

    .info-tabs__button:last-child {
        border-right: none;
    }

    .info-tabs__button.is-active,
    .info-tabs__button[aria-selected="true"] {
        background-color: var(--primary-green);
        color: white;
    }

    .info-tabs__button:not(.is-active):hover {
        background-color: white;
        color: var(--primary-green);
    }

    .info-tabs__button:focus-visible {
        border: 2px solid black
    }

    .info-tabs__nav > .info-tabs__button:first-child {
        border-radius: var(--lg-border-radius) 0 0 var(--lg-border-radius)  ;
    }

    .info-tabs__nav > .info-tabs__button:last-child {
        border-radius: 0 var(--lg-border-radius) var(--lg-border-radius) 0;
    }

    .info-tabs__panel {
        font-size: var(--sm-size);
        color: var(--text-dark-gray);
    }

    .info-tabs__panel[hidden] {
        display: none !important;
    }

    .info-tabs__panel p:last-child {
        margin-bottom: 0;
    }
    
    .school-app-card {
        justify-content: flex-start;
        height: fit-content;
    }

    .school-app-card h3 {
        margin-bottom: 0;
    }


    .lightbox-modal {
        position: fixed;
        inset: 0;
        z-index: var(--z-modal);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-modal[hidden] {
        display: none;
    }

    .lightbox-overlay {
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(4px);
    }

    .lightbox-container {
        position: relative;
        z-index: var(--z-sticky);
        max-width: 90vw;
        max-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-media img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: block;
    }

    .lightbox-modal .ctrl-btn {
        opacity: 1;
    }

    .lightbox-modal .prev-btn {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-modal .next-btn {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-modal .close-btn {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }

}

/* 
narrow media breakpoint
*/
@media screen and (min-width: 320px) {
}

/* 
ns media breakpoint
*/
@media screen and (min-width: 475px) {
}

/* 
media media breakpoint
*/
@media screen and (min-width: 640px) {
    .school-resources {
        gap: 24px;
    }

    .info-tabs {
        margin-bottom: 36px;
    }
    
    .info-tabs__nav {
        margin-bottom: 30px;   
    }

    .info-tabs__button {
        flex: 1;
        padding: 20px;
        font-size: var(--md-size);
    }
}

/* 
medium_to_large media breakpoint
*/
@media screen and (min-width: 768px) {
    main > *:not(:last-child) {
        margin-bottom: 60px;
    }

    .grid-two-columns {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2,1fr);
    }

    .hero-section.grid-two-columns {
        grid-template-rows: auto;
    }


    .hero-section .school-info__wrapper svg {
        height: 24px;
    }

    .hero-carousel {
        height: stretch;
    }

    .hero-section .right-column {
        aspect-ratio: 2/1;
    }
    
    .school-resources {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .media-gallery-wrapper {
        grid-template-columns: repeat(3,1fr);
        gap: 16px;
    }

    .info-tabs {
        margin-bottom: 40px;
    }

    .info-tabs__button {
        padding: 16px;
        font-size: var(--sm-size);
    }

    .school-app-card {
        padding: 30px;
    }
}

/* 
large media breakpoint
*/
@media screen and (min-width: 1024px) {
    .grid-two-columns {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 30px;
    }

    .hero-section .school-info__wrapper svg {
        height: 30px;
    }

    .hero-section .school-info {
        flex-wrap: nowrap;
    }

    .hero-section .right-column {
        aspect-ratio: unset;
    }

    .media-gallery-wrapper {
        gap: 20px;
    }

    .school-resources {
        grid-template-columns: 3fr 2fr;
    }

    .info-tabs__nav {
        border: 1px solid var(--primary-green);
        border-radius: var(--lg-border-radius);
        overflow: hidden;
        background-color: white;
        margin-bottom: 24px;
    }

    .info-tabs__button {
        padding: 20px;
        font-size: var(--lg-size);
    }

    .school-app-card {
        padding: 36px;
    }
}

/* 
xlarge media breakpoint
*/
@media screen and (min-width: 1200px) {

    .hero-section .school-info__wrapper .address {
        font-size: var(--md-size);
    }

    .hero-section .school-info__wrapper .phone {
        font-size: var(--lg-size);
    }

    .media-gallery-wrapper img {
        border-radius: var(--lg-border-radius);
    }

    /* .school-resources {
        grid-template-columns: 2fr 1fr;
    } */

    .school-app-card {
        padding: 40px;
    }

    .info-tabs__button {
        padding: 20px;
        font-size: var(--xl-size);
    }
}

/* 
xxlarge media breakpoint
*/
@media screen and (min-width: 1440px) {
}



/*
==================
  REDUCED MOTION
================== */
@media (prefers-reduced-motion: reduce) {
    .hero-section .school-info__wrapper,
    .hero-section .school-info__wrapper a {
        transition: none !important;
    }

    .media-gallery-wrapper img {
        transition: none !important;
    }

    .media-gallery-wrapper img:hover {
        transform: none !important;
    }

    .info-tabs__button {
        transition: none !important;
    }

    .lightbox-modal .prev-btn,
    .lightbox-modal .next-btn {
        transform: translateY(-50%) !important;
    }
}