/* ==========================================================================
   INTERIOR GALLERY GRID SECTION
   ========================================================================== */

/* Main Section Padding (Optional but looks clean) */
section {
    padding: 60px 0;
    background-color: #fcfcfc; /* Dynamic structure texture highlight */
}
/* ==========================================================================
   CUSTOM LIGHTBOX SYSTEM
   ========================================================================== */
.lightbox-modal {
    display: none; /* Default e full screen text content structure hidden */
    position: fixed;
    z-index: 9999; /* Apnar header background thiko boro rakhben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 30, 0.95); /* Ultra sleek dark overlay */
    justify-content: center;
    align-items: center;
}

/* Lightbox popup show mechanism hook */
.lightbox-modal.show {
    display: flex;
}

/* Main Display Image Frame */
.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Title corner e rkhbe */
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Title Label Text Position - Corner-aligned */
.lightbox-caption {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* Action Control Icons - Navigation Controls */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}
.lightbox-close:hover {
    color: #ff4d4d;
}

/* Arrow Navigation System Configuration */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: none;
    font-size: 30px;
    padding: 18px 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}
.lightbox-arrow:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.25);
    color: rgb(45, 45, 148);
}

.arrow-left { left: 40px; }
.arrow-right { right: 40px; }

/* Dynamic Disabled State Selector Rule */
.lightbox-arrow.disabled {
    opacity: 0.15;
    cursor: not-allowed;
    background: transparent;
}

/* Responsive adjustments for smart mobile views */
@media (max-width: 768px) {
    .lightbox-content { max-width: 95%; }
    .lightbox-arrow { padding: 12px 16px; font-size: 20px; }
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; }
}
/* Grid Wrapper Container */
.gallery-container {
    display: grid;
    /* Default Mobile-e protiti row-te 1-ti kore image full width thakbe */
    grid-template-columns: repeat(1, 1fr);
    gap: 24px; /* Card gulor moddher top-bottom ar left-right gap */
    padding: 0 20px;
    max-width: 1400px; /* Layout standard maximum width limit */
    margin: 0 auto; /* Grid container ke center e rakhar jonno */
}

/* Individual Gallery Card Configuration */
.gallery-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Interior Architecture Style */
.gallery-card:hover {
    transform: translateY(-6px); /* Card-ti halka upore bheshe uthbe */
    box-shadow: 0 8px 24px rgba(18, 18, 60, 0.12); /* Header base dark shadow */
}

/* Image Wrapper Box */
.gallery-img-box {
    width: 100%;
    height: 220px; /* Default height for mobile layout images */
    overflow: hidden;
    border-radius: 6px;
    background-color: #f5f5f5; /* Image load hote layout backup area color */
}

/* Interior Image Optimization */
.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resolution maintain thakbe, stretch ba baje vabe crop hobe na */
    transition: transform 0.4s ease;
}

/* Image Zoom on Card Hover */
.gallery-card:hover .gallery-img-box img {
    transform: scale(1.04); /* Image bhetor theke halka smooth zoom hobe */
}

/* Title Styling Underneath the Image */
.gallery-title {
    margin-top: 14px;
    font-size: 15px;
    color: rgb(18, 18, 60); /* Apnar main header dark color context matched */
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    font-family: 'Poppins', sans-serif; /* Clean professional interior look font */
    letter-spacing: 0.3px;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* Small Mobile Screens (Optional Adjustment for dual view) */
@media (min-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* Mobile layout double view grid */
        gap: 16px;
    }
    .gallery-img-box {
        height: 160px; /* Small screen adjustment */
    }
}

/* Tablet & iPad View Screens (Over 768px) */
@media (min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .gallery-img-box {
        height: 240px; /* Tablet view layout image size magnification */
    }
}

/* Laptop & Medium Resolution Desktop Screens (Over 992px) */
@media (min-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr); /* 1 row te 3ti image thakbe */
    }
    .gallery-img-box {
        height: 220px;
    }
    .gallery-title {
        font-size: 16px;
    }
}

/* Ultra Wide Large Desktop Workstations (Over 1200px) */
@media (min-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr); /* 1 row te 4ti standard image fix hobe */
        gap: 30px; /* Space slightly optimized */
    }
    .gallery-img-box {
        height: 210px; /* 4 column structural grid alignment balance height */
    }
}