/* ===== Gallery Styles ===== */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-card.featured {
    border: 2px solid #667eea;
}

.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5, .gallery-info h6 {
    margin-bottom: 5px;
    color: white;
}

.gallery-meta {
    font-size: 0.8rem;
    opacity: 0.9;
}

.gallery-meta span {
    display: inline-block;
    margin-right: 10px;
}

.gallery-actions {
    display: flex;
    gap: 5px;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: all 0.3s;
    z-index: 2;
}

.gallery-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Filter Controls */
.filter-controls .btn {
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.filter-controls .btn:hover {
    transform: translateY(-2px);
}

/* Modal Styles */
#galleryModal .modal-content {
    background: transparent;
}

#galleryModal .btn-close {
    z-index: 1050;
}

/* Lightbox */
#lightboxModal .modal-content {
    background: rgba(0,0,0,0.95);
}

#lightboxModal .btn-close {
    z-index: 1060;
}

#lightboxModal .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

#lightboxModal .btn-light {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    transition: all 0.3s;
}

#lightboxModal .btn-light:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

#lightboxModal .btn-light:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Share Buttons */
.btn-facebook {
    background: #3b5998;
    color: white;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-card {
        margin-bottom: 15px;
    }
    
    .play-icon {
        font-size: 3rem;
    }
    
    .filter-controls .btn {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-overlay {
        padding: 10px;
    }
    
    .gallery-info h6 {
        font-size: 0.9rem;
    }
    
    .gallery-actions .btn-sm {
        padding: 2px 8px;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    animation: fadeIn 0.6s ease-out;
}

/* Masonry Grid (opsional) */
.gallery-masonry {
    column-count: 4;
    column-gap: 20px;
}

.gallery-masonry .gallery-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .gallery-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        column-count: 1;
    }
}