/* Gallery Home Section Styles */

.gallery-section {
    padding: 60px 0;
    background-color: #f8f6f2;
}

.gallery-grid {
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 250px;
}

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

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Modal Styles */
.gallery-modal .modal-body {
    padding: 0;
}

.gallery-modal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-modal .modal-header {
    border-bottom: none;
    padding: 15px 15px 0;
}

.gallery-modal .modal-footer {
    border-top: none;
}

.gallery-modal .btn-close {
    background-color: #fff;
    opacity: 1;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-modal img {
    width: 100%;
}

.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
    
    .gallery-info h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 180px;
    }
}
