/*****************************************************
     Media Queries Start
******************************************************/

@media only screen and (min-width:2200px) {
    .max-width-center {
        max-width: 1800px;
    }

    html {
        font-size: 100%;
    }
}


@media only screen and (min-width:1900px) and (max-width:2199px) {
    .max-width-center {
        max-width: 1500px;
    }

    html {
        font-size: 88%;
    }
}


@media only screen and (min-width:1580px) and (max-width:1899px) {
    html {
        font-size: 80%;
    }
}


@media only screen and (max-width:1536px) and (min-height:900px) {
    html {
        font-size: 70%;
    }
}


@media only screen and (max-width:1300px) and (min-height:900px) {
    html {
        font-size: 80%;
    }
}


@media only screen and (max-width:1150px) and (min-height:900px) {

    .section-block-padding {
        padding-block: 4rem;
    }

    .logo-box h2 {
        font-size: 3rem;
    }

    nav {
        flex-direction: column;
        justify-content: initial;
        gap: 1rem;
    }

    nav .nav-btn {
        display: none;
    }


    .nav-links ul {
        gap: 3.2rem;
    }

    .nav-links ul li a {
        font-size: 1.8rem;
    }

    .training-box {
        padding-inline: 4%;
    }

    .offer-boxes-container {
        gap: 4%;
    }

    .offer-box {
        flex: unset;
        flex-basis: 48%;
        margin-bottom: 4%;
    }

    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .gallery-row-1 .gallery-box:nth-child(3) {
        grid-column: 1 / span 2;
    }

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

    .gallery-row-2 .gallery-box:nth-child(3) {
        grid-column: 1 / span 2;
    }



    .pricing-boxes-container {
        gap: 4%;
        justify-content: initial;
    }

    .pricing-box {
        flex-basis: 48%;
        margin-bottom: 4%;
        padding: 2rem;
    }

    .about-info {
        padding-left: 2rem;
    }

    .blogs-boxes-container {
        gap: 2rem;
    }

    .contact-center {
        gap: 2rem;
        padding-bottom: 2rem;
    }
}

@media only screen and (max-width:1000px) and (max-height:899px) {
    html {
        font-size: 58%;
    }
}


@media only screen and (max-width:900px) {

    .section-block-padding {
        padding-block: 4rem;
    }

    .logo-box h2 {
        font-size: 3rem;
    }

    nav {
        flex-direction: column;
        justify-content: initial;
        gap: 1rem;
    }

    nav .nav-btn {
        display: none;
    }


    .nav-links ul {
        gap: 3.2rem;
    }

    .nav-links ul li a {
        font-size: 1.2rem;
    }

    .training-box {
        padding-inline: 4%;
    }

    .offer-boxes-container {
        gap: 4%;
    }

    .offer-box {
        flex: unset;
        flex-basis: 48%;
        margin-bottom: 4%;
    }

    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .gallery-row-1 .gallery-box:nth-child(3) {
        grid-column: 1 / span 2;
    }

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

    .gallery-row-2 .gallery-box:nth-child(3) {
        grid-column: 1 / span 2;
    }

    .pricing-boxes-container {
        gap: 4%;
        justify-content: initial;
    }

    .pricing-box {
        flex-basis: 48%;
        margin-bottom: 4%;
        padding: 2rem;
    }

    .about-info {
        padding-left: 2rem;
    }

    .blogs-boxes-container {
        gap: 2rem;
    }

    .contact-center {
        gap: 4%;
    }

    .contact-box {
        flex: unset;
        flex-basis: 48%;
        margin-bottom: 6%;
    }

}


@media only screen and (max-width:768px) and (min-height:900px) {
    html {
        font-size: 88%;
    }

}


@media only screen and (max-width:768px) {
    #hero-text h1 {
        font-size: 8rem;
    }

    .section-heading {
        font-size: 8rem;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-toggle-btn {
        display: grid;
        z-index: 5;
    }

    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.758);
        display: grid;
        place-items: center;
        z-index: 2;
        transition: all .5s ease-out;
        transform: perspective(2000px) rotateY(-90deg);
        transform-origin: right;
    }

    .active .nav-links {
        transform: perspective(2000px) rotateX(0deg);
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 28rem;
        max-width: 90vw;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0 1rem;
        margin-top: 0;
        overflow: hidden;
        transition: max-height .4s ease, padding .4s ease, margin .4s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 60rem;
        padding: 1rem;
        margin-top: 1.6rem;
        transform: translate(0%, 0);
    }

    .nav-dropdown .dropdown-menu li a {
        text-align: center;
        font-size: 1.5rem;
    }

    .gallery-modal-content {
        padding: 2.4rem 1.5rem;
    }

    .gallery-modal-header {
        margin-bottom: 2rem;
    }

    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
        gap: 1rem;
    }

    .gallery-modal-title {
        font-size: 1.9rem;
    }

    .gallery-lightbox-nav {
        width: 4rem;
        height: 4rem;
        font-size: 1.4rem;
    }

    .gallery-lightbox-prev {
        left: 1rem;
    }

    .gallery-lightbox-next {
        right: 1rem;
    }

    .gallery-lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 3.8rem;
        height: 3.8rem;
    }

    .gallery-lightbox-counter {
        bottom: 1.5rem;
        font-size: 1.1rem;
    }


    .training-boxes-container,
    .offer-boxes-container,
    .pricing-boxes-container,
    #about-section,
    .blogs-boxes-container,
    .contact-center {
        gap: 4rem;
        flex-direction: column;
        align-items: center;
    }


    .training-box {
        flex: unset;
        width: 100%;
        margin-bottom: 0;
        padding-inline: 10%;
    }

    .offer-box {
        flex-basis: unset;
        width: 100%;
        margin-bottom: 0;
    }

    .offer-box img,
    .gallery-box img {
        height: 30rem;
    }

    .pricing-box {
        flex-basis: unset;
        width: 65%;
        margin-bottom: 0;
        padding: 2rem;
    }

    .about-img {
        flex: unset;
        width: 100%;
    }

    .about-info {
        flex: unset;
        width: 100%;
        padding-left: 0;
    }

    .contact-box {
        flex: unset;
        flex-basis: unset;
        width: 80%;
        margin-bottom: 0;
    }

}



@media only screen and (max-width:700px) and (min-height:900px) {
    html {
        font-size: 70%;
    }
}


@media only screen and (max-width:550px) {
    .pricing-box {
        width: 90%;
    }

    .gallery-row,
    .gallery-row-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .gallery-row-1 .gallery-box:nth-child(3),
    .gallery-row-2 .gallery-box:nth-child(3) {
        grid-column: initial;
    }

    .gallery-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    .gallery-modal-header {
        flex-direction: column;
        gap: .5rem;
    }

}

@media only screen and (max-width:550px) and (min-height:900px) {

    html {
        font-size: 76%;
    }

    .pricing-box,
    .contact-box {
        width: 100%;
    }

    .section-heading {
        font-size: 4.5rem;
    }

    #hero-text h2 {
        font-size: 3.3rem;
    }

    #hero-text h1 {
        margin-top: .7rem;
        font-size: 5.6rem;
    }

    .logo-box img {
        height: 5.5rem;
    }

    .logo-box h2 {
        font-size: 2.3rem;
    }

    .nav-links ul li a {
        font-size: 1.6rem;
    }

    .mobile-toggle-btn {
        font-size: 2rem;
    }
}


@media only screen and (max-width:400px) and (max-height:899px) {

    html {
        font-size: 50%;
    }

    p {
        font-size: 1.5rem;
    }


    button {
        font-size: 1.6rem;
    }

    .section-heading {
        font-size: 4.6rem;
    }

    /**********************************************************
    Header Start 
**********************************************************/
    header {
        width: 100%;
        min-height: 100vh;
        background-image: linear-gradient(-219deg, rgba(0, 0, 0, 0.788) 12%, rgba(255, 0, 0, 0.82) 37%, rgba(0, 0, 0, 0.13)70%), url("../assets/images/hero-1.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    header.page-header {
        min-height: auto;
        height: auto;
        background-image: none;
        background-color: var(--black);
        background-attachment: initial;
    }

    .pricing-box,
    .contact-box {
        width: 95%;
    }



    #hero-text h2 {
        font-size: 3.7rem;
    }

    #hero-text h1 {
        margin-top: .7rem;
        font-size: 6.5rem;
    }


    footer ul li a {
        font-size: 1.4rem;
    }

    .social-media-icons a {
        font-size: 2rem;
    }

}


@media only screen and (max-width:320px) {

    html {
        font-size: 45%;
    }

}

@media only screen and (max-width:280px) {

    html {
        font-size: 35%;
    }

}

@media only screen and (max-width:200px) {

    html {
        font-size: 22%;
    }

}








/* Ensure logo and title stay on one line on small screens */
@media only screen and (max-width:768px) {

    /* prevent nav items from wrapping */
    nav.d-flex {
        flex-wrap: nowrap;
        align-items: center;
        gap: .6rem;
    }

    .logo-box {
        display: flex;
        align-items: center;
        gap: .6rem;
        flex: 1 1 auto;
        /* allow shrinking if needed */
    }

    .logo-box img {
        height: 3.8rem;
        /* slightly smaller logo */
        width: auto;
        flex: 0 0 auto;
    }

    .logo-box h2 {
        font-size: 1.6rem;
        /* smaller title */
        display: inline-block;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 6.5rem);
        /* leave space for hamburger */
    }

    .logo-box h2 br {
        display: none;
        /* remove forced line break */
    }

    /* ensure hamburger stays on the same line and aligned right */
    .mobile-toggle-btn {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        margin-left: .6rem;
        z-index: 6;
    }
}

/* Further tweak for very small screens */
@media only screen and (max-width:400px) {
    .logo-box img {
        height: 3.2rem;
    }

    .logo-box h2 {
        font-size: 1.2rem;
    }
}

/*****************************************************
    Poland Map & Mosaic Gallery Media Queries
******************************************************/
@media only screen and (max-width: 1050px) {
    .poland-map-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .mosaic-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 22rem;
        gap: 1.5rem;
    }

    .mosaic-item--lg {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item--tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    .mosaic-item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media only screen and (max-width: 768px) {
    .mosaic-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 20rem;
        gap: 1.2rem;
    }

    .mosaic-item--lg {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item--tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    .mosaic-item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item--sm {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mosaic-item-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, 0.85) 100%);
        padding: 1.4rem;
    }

    .mosaic-item-badge,
    .mosaic-item-caption {
        transform: translateY(0);
    }

    .mosaic-item-caption {
        font-size: 1.3rem;
    }

    .mosaic-item-zoom {
        display: none;
    }

    .map-legend {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media only screen and (max-width: 480px) {
    .mosaic-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 24rem;
    }

    .mosaic-item--lg,
    .mosaic-item--tall,
    .mosaic-item--wide,
    .mosaic-item--sm {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/*****************************************************
     Media Queries End
******************************************************/