/* ==========================================================================
   35 Frames Photography - Responsive Stylesheet
   ========================================================================== */

/* Media Query: Extra Large Screen */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Media Query: Large Screen (Laptops/Desktops) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-img-box.img-1 {
        width: 270px;
        height: 380px;
        left: 5%;
    }
    
    .hero-img-box.img-2 {
        width: 210px;
        height: 280px;
    }

    .hero-image-grid {
        height: 500px;
    }

    .portfolio-masonry-container {
        column-count: 3;
        column-gap: 20px;
    }
}

/* Media Query: Medium Screen (Tablets) */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Navbar mobile toggle support */
    .navbar-collapse {
        background-color: var(--color-bg-card);
        border-top: 1px solid var(--color-border-light);
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        color: var(--color-text-main) !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--color-primary) !important;
    }

    /* Scrolled navbar toggler visibility on mobile */
    .navbar-custom.navbar-scrolled .navbar-toggler {
        border-color: rgba(31, 29, 26, 0.3) !important;
    }

    .navbar-custom.navbar-scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 29, 26, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background-color: var(--color-bg-main) !important;
        border: none !important;
        padding-left: 15px !important;
        margin-top: 0 !important;
        display: none;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Let BS JS control it or simple class toggle */
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }

    /* Hero section layouts */
    .hero-banner {
        height: auto;
        min-height: auto;
        padding: 150px 0 100px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-image-grid {
        margin-top: 50px;
        height: 420px;
    }

    .hero-img-box.img-1 {
        width: 240px;
        height: 340px;
        left: 15%;
    }

    .hero-img-box.img-2 {
        width: 180px;
        height: 240px;
        right: 15%;
    }

    .hero-img-box.img-3 {
        width: 130px;
        height: 130px;
        top: 10%;
    }

    /* About US composition */
    .about-image-composition {
        height: auto;
        margin-bottom: 50px;
    }

    .about-img-large {
        width: 100%;
        height: 380px;
    }

    .about-img-small {
        display: none;
    }

    /* Why choose and process layout */
    .why-card {
        padding: 40px 30px;
    }

    .portfolio-masonry-container {
        column-count: 2;
    }

    /* Instagram grid */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer Bottom layout */
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-copyright {
        text-align: center;
    }

    /* Prevent filter buttons from being cut off on mobile/tablet during overflow */
    .gallery-filters {
        justify-content: flex-start !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Reduce spacing below the photographer image on mobile/tablet */
    .meet-photographer {
        padding-bottom: 30px !important;
    }
    .section-stats {
        padding-top: 30px !important;
    }

    /* Disable fixed background attachments on mobile/tablet for fluid scroll performance */
    #packages {
        background-attachment: scroll !important;
    }
}

/* Media Query: Small Screen (Mobile Phones) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-image-grid {
        display: none; /* Hide complex multi-image layout on mobile for better LCP & cleaner view */
    }

    .btn-premium {
        padding: 12px 28px;
        font-size: 0.8rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .portfolio-masonry-container {
        column-count: 1;
    }

    .package-card {
        padding: 40px 30px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .contact-info-card, .contact-form-card {
        padding: 30px 20px;
    }

    .navbar-brand img {
        height: 52px;
    }
    
    .navbar-custom.navbar-scrolled .navbar-brand img {
        height: 44px;
    }
}

/* Media Query: Extra Small Screen (Smaller Mobiles) */
@media (max-width: 575.98px) {
}
