/* ============================================
   GALLERY HERO SECTION
   ============================================ */

/* Desktop Gallery Hero */
.deluxe-construction-gallery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gallery-hero.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.deluxe-construction-gallery-hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deluxe-construction-gallery-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.deluxe-construction-gallery-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tablet Gallery Hero */
@media (max-width: 768px) {
    .deluxe-construction-gallery-hero {
        height: 220px;
    }
    
    .deluxe-construction-gallery-hero-container {
        padding: 0 30px;
    }
    
    .deluxe-construction-gallery-hero-title {
        font-size: 38px;
    }
}

/* Mobile Gallery Hero */
@media (max-width: 480px) {
    .deluxe-construction-gallery-hero {
        height: 180px;
    }
    
    .deluxe-construction-gallery-hero-container {
        padding: 0 20px;
    }
    
    .deluxe-construction-gallery-hero-title {
        font-size: 30px;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

/* Desktop Gallery Section */
.deluxe-construction-gallery-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.deluxe-construction-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.deluxe-construction-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.deluxe-construction-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
}

.deluxe-construction-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.deluxe-construction-gallery-item:hover img {
    transform: scale(1.05);
}

/* Pagination */
.deluxe-construction-gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.deluxe-construction-gallery-pagination-button {
    font-family: 'Faustina', serif;
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.deluxe-construction-gallery-pagination-button:hover {
    background-color: #d2b08b;
    color: white;
    border-color: #d2b08b;
    transform: translateY(-2px);
}

.deluxe-construction-gallery-pagination-button.active {
    background-color: #d2b08b;
    color: white;
    border-color: #d2b08b;
}

.deluxe-construction-gallery-pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.deluxe-construction-gallery-pagination-button:disabled:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
    transform: none;
}

/* Tablet Gallery Section */
@media (max-width: 768px) {
    .deluxe-construction-gallery-section {
        padding: 80px 0;
    }
    
    .deluxe-construction-gallery-container {
        padding: 0 30px;
    }
    
    .deluxe-construction-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .deluxe-construction-gallery-pagination-button {
        padding: 10px 18px;
        font-size: 15px;
        min-width: 45px;
    }
}

/* Mobile Gallery Section */
@media (max-width: 480px) {
    .deluxe-construction-gallery-section {
        padding: 60px 0;
    }
    
    .deluxe-construction-gallery-container {
        padding: 0 20px;
    }
    
    .deluxe-construction-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .deluxe-construction-gallery-pagination {
        gap: 10px;
    }
    
    .deluxe-construction-gallery-pagination-button {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 42px;
    }
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */

/* Desktop Lightbox */
.deluxe-construction-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.deluxe-construction-gallery-lightbox.active {
    display: flex;
}

.deluxe-construction-gallery-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.deluxe-construction-gallery-lightbox-close {
    font-family: 'Faustina', serif;
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: #d2b08b;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.deluxe-construction-gallery-lightbox-close:hover {
    background-color: #c4a07d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 176, 139, 0.4);
}

/* Tablet Lightbox */
@media (max-width: 768px) {
    .deluxe-construction-gallery-lightbox {
        padding: 15px;
    }
    
    .deluxe-construction-gallery-lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .deluxe-construction-gallery-lightbox-close {
        top: 20px;
        right: 20px;
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Mobile Lightbox */
@media (max-width: 480px) {
    .deluxe-construction-gallery-lightbox {
        padding: 10px;
    }
    
    .deluxe-construction-gallery-lightbox-image {
        max-width: 100%;
        max-height: 80vh;
    }
    
    .deluxe-construction-gallery-lightbox-close {
        top: 15px;
        right: 15px;
        padding: 10px 25px;
        font-size: 15px;
    }
}

/* Prevent body scroll when lightbox is open */
body.deluxe-construction-gallery-lightbox-open {
    overflow: hidden;
}