/* ============================================
   Apartment Gallery Section Styles
   ============================================ */

.apartment-gallery {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.apartment-gallery .section-title {
    margin-bottom: 50px;
}

.apartment-gallery .section-title h2 span {
    color: #ff6b35;
}

.gallery-grid {
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.gallery-content p {
    font-size: 16px;
    color: #f8f9fa;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .gallery-item {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .gallery-content h4 {
        font-size: 20px;
    }
    
    .gallery-content p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .apartment-gallery {
        padding: 60px 0;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-content h4 {
        font-size: 18px;
    }
}

/* Margin utility classes if not already defined */
.mar-bottom-30 {
    margin-bottom: 30px;
}

.mar-top-30 {
    margin-top: 30px;
}