.mirza-gallery-section {
    padding: 50px 0;
    background-color: #0B0F19; /* Premium Dark Background Theme */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
    position: relative;
}

.mirza-gallery-section *, .mirza-gallery-section *::before, .mirza-gallery-section *::after {
    box-sizing: border-box;
}

.mirza-gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.mirza-gallery-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mirza-gallery-badge span {
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mirza-gallery-badge-dot {
    width: 6px;
    height: 6px;
    background-color: #F97316;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #F97316;
}

.mirza-gallery-heading {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 3.5vw, 3rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.mirza-gallery-heading .highlight {
    color: #F97316;
}

/* Outer Structural Placement Container for Arrows Placement Control */
.mirza-gallery-outer-container {
    position: relative;
    width: 100%;
    padding: 0 80px; /* Leaves side gutters for the absolute modern arrow loops */
}

.mirza-gallery-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0;
}

/* Base Flexible Lineup Engine Container */
.mirza-gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.mirza-gallery-container::-webkit-scrollbar {
    display: none;
}

.mirza-gallery-container.grabbing {
    cursor: grabbing;
}

/* Desktop Grid Configuration Layer (Forces Exactly 5 Items Across Viewport) */
.mirza-gallery-card {
    flex: 0 0 calc((100% - (20px * 4)) / 5);
    min-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #131926;
    aspect-ratio: 4 / 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mirza-gallery-card:hover {
    transform: scale(1.03);
}

.mirza-gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mirza-gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mirza-gallery-card:hover .mirza-gallery-img-wrapper img {
    transform: scale(1.08);
}

/* Modern Inner Pop-Up Click Hover Mask */
.mirza-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.85) 0%, rgba(11, 15, 25, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mirza-gallery-card:hover .mirza-gallery-overlay {
    opacity: 1;
}

.mirza-gallery-icon {
    width: 48px;
    height: 48px;
    background: #F97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mirza-gallery-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.mirza-gallery-card:hover .mirza-gallery-icon {
    transform: translateY(0);
}

/* Premium Navigation Control Arrows Styling */
.mirza-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(19, 25, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mirza-carousel-arrow:hover {
    background: #F97316;
    border-color: #F97316;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.mirza-carousel-arrow.arrow-prev {
    left: 15px;
}

.mirza-carousel-arrow.arrow-next {
    right: 15px;
}

/* Modern Minimalist Pagination Bullets */
.mirza-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    width: 100%;
}

.mirza-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mirza-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.mirza-dot.active {
    background: #F97316;
    width: 28px; /* High end pill-shape expansion animation */
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

/* Mock Structural Layout Configurations */
.mirza-gallery-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 2px dashed #334155;
    border-radius: 16px;
}

.mirza-gallery-placeholder-img span {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lightbox Modal Structure */
.mirza-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 17, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mirza-gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.mirza-lightbox-content-wrapper {
    max-width: 85%;
    max-height: 85%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.mirza-gallery-lightbox.active .mirza-lightbox-content-wrapper {
    transform: scale(1);
}

.mirza-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.mirza-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #94A3B8;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mirza-lightbox-close:hover {
    color: #ffffff;
}

/* Media Query Fluid Breakpoints Matrix */
@media (max-width: 1200px) {
    .mirza-gallery-card {
        flex: 0 0 calc((100% - (20px * 3)) / 4);
    }
}

@media (max-width: 991px) {
    .mirza-gallery-card {
        flex: 0 0 calc((100% - (20px * 2)) / 3);
    }
    .mirza-gallery-outer-container {
        padding: 0 60px;
    }
}

@media (max-width: 767px) {
    .mirza-gallery-section {
        padding: 60px 0;
    }
    .mirza-gallery-outer-container {
        padding: 0 20px;
    }
    .mirza-gallery-container {
        gap: 15px;
    }
    .mirza-gallery-card {
        flex: 0 0 260px; 
    }
    .mirza-carousel-arrow {
        display: none; /* Hide absolute navigation keys on tight responsive screens to enhance clean layout space */
    }
    .mirza-lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
    .mirza-carousel-pagination {
        margin-top: 25px;
    }
}