/* ====================================================================
   bhojendra.com - Responsive Stylesheet
   ==================================================================== */

/* ============ TABLET (<= 1024px) ============ */
@media (max-width: 1024px) {
    .two-col-grid { grid-template-columns: 1fr; gap: 30px; }
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: repeat(3, 1fr); }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-carousel-item { flex: 0 0 calc((100% - 14px*3) / 4); }
    .post-card { flex: 0 0 calc((100% - 20px) / 2); }
    .soundcloud-item { flex: 0 0 calc((100% - 20px) / 2); }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-col-1 { grid-column: 1 / -1; }
}

/* ============ MOBILE (<= 768px) ============ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right-block {
        width: 100%;
        justify-content: space-between;
    }
    .header-search-form input { width: 140px; }

    .site-logo { height: 48px; }

    /* Mobile Nav */
    .nav-container { justify-content: space-between; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-primary);
    }
    .nav-menu.open { display: flex; }
    .nav-item { width: 100%; }
    .nav-item > a {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,0.06);
    }
    .nav-item.has-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a { color: #dde6f3; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .dropdown-menu li a:hover { background: rgba(255,255,255,0.1); color: #fff; }

    /* Hero slider */
    .hero-slider { height: 240px; }
    .hero-slide-caption { font-size: 0.9rem; padding: 8px 14px; left: 12px; bottom: 12px; max-width: 90%; }
    .hero-slider-nav { width: 36px; height: 36px; font-size: 0.9rem; }

    /* Icons grid */
    .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .icon-card { padding: 16px 10px; }
    .icon-card-icon { font-size: 1.5rem; }
    .icon-card-title { font-size: 0.85rem; }
    .icon-card-desc { font-size: 0.75rem; }

    /* Post cards */
    .post-card { flex: 0 0 100%; }
    .listing-grid { grid-template-columns: 1fr; }
    .card-slider-track { gap: 14px; }

    /* Photo carousel */
    .photo-carousel-item { flex: 0 0 calc((100% - 14px*2) / 3); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }

    .soundcloud-item { flex: 0 0 100%; }

    /* Footer */
    .footer-columns { grid-template-columns: 1fr; padding: 30px 16px; }
    .footer-col-1 { grid-column: auto; }
    .footer-full-menu { justify-content: flex-start; flex-direction: column; }
    .footer-submenu { position: static; box-shadow: none; }
    .footer-full-menu > li:hover .footer-submenu { display: block; }

    /* Single post */
    .single-post-title { font-size: 1.5rem; }
    .single-post-meta-bar { flex-direction: column; align-items: flex-start; }
    .post-nav-bottom { flex-direction: column; }
    .post-nav-link.next { text-align: left; }

    .section { padding: 40px 0; }
    .section-title { font-size: 1.3rem; }

    .page-banner { padding: 30px 0; }
    .page-banner h1 { font-size: 1.5rem; }
}

/* ============ SMALL MOBILE (<= 480px) ============ */
@media (max-width: 480px) {
    .photo-carousel-item { flex: 0 0 calc((100% - 14px) / 2); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: 1fr; }
    .icons-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search-form input { width: 100px; }
    .photography-btn span { display: none; }
    .photography-btn { padding: 10px 12px; }
}

/* ============ PHOTOGRAPHY PAGE RESPONSIVE ============ */
@media (max-width: 1024px) {
    .photo-masonry { column-count: 2; }
    .photo-hero-title { font-size: 1.75rem; }
}
@media (max-width: 768px) {
    .photo-hero { min-height: 300px; }
    .photo-hero-title { font-size: 1.4rem; }
    .photo-hero-subtitle { font-size: 0.95rem; }
    .photo-masonry { column-count: 2; padding: 0 12px; }
    .photo-filters { padding: 18px 12px 14px; gap: 4px 14px; }
    .photo-lightbox-nav { padding: 12px 10px; font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .photo-masonry { column-count: 1; padding: 0 10px; }
    .photo-hero { min-height: 240px; }
    .photo-hero-title { font-size: 1.2rem; }
    .photo-lightbox-prev { left: 4px; }
    .photo-lightbox-next { right: 4px; }
}

/* ============ SPOTLIGHT (FEATURED + SIDEBAR) RESPONSIVE ============ */
@media (max-width: 1200px) {
    .photo-spotlight-sidebar { flex: 0 0 260px; }
    .photo-featured-title { font-size: 1.5rem; }
}
@media (max-width: 900px) {
    .photo-spotlight-wrap { flex-direction: column; }
    .photo-spotlight-main { min-height: 380px; }
    .photo-featured-card { min-height: 380px; }
    .photo-featured-card-img { min-height: 380px; }
    .photo-spotlight-sidebar {
        flex: none;
        max-height: none;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        display: grid;
        grid-template-columns: 1fr;
    }
    .photo-sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .photo-sidebar-head { grid-column: 1 / -1; }
    .photo-featured-title { font-size: 1.35rem; }
    .photo-featured-panel { padding: 20px 20px 18px; }
}
@media (max-width: 600px) {
    .photo-spotlight-main { min-height: 300px; }
    .photo-featured-card { min-height: 300px; }
    .photo-featured-card-img { min-height: 300px; }
    .photo-featured-title { font-size: 1.15rem; }
    .photo-featured-desc { font-size: 0.87rem; }
    .photo-featured-panel { padding: 16px 14px 14px; }
    .photo-sidebar-list { grid-template-columns: 1fr; }
    .photo-sidebar-thumb-wrap { flex: 0 0 72px; }
    .photo-sidebar-thumb { width: 72px; }
}
