/* Galleries Page Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.galleries-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gallery-cover img {
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-cover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-image-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-image-count i {
    font-size: 0.9rem;
}

.card-title {
    color: #29193d;
    font-weight: 600;
    line-height: 1.4;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    font-weight: 500;
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.badge.bg-primary {
    background: #667eea !important;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
}

.empty-state {
    padding: 100px 0;
    text-align: center;
}

.empty-state i {
    color: #ddd;
    margin-bottom: 30px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state p {
    color: #adb5bd;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .galleries-section {
        padding: 60px 0;
    }
    
    .gallery-cover {
        height: 180px;
    }
}

/* Gallery Detail Page Styles */
.gallery-images-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-image-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-card:hover .image-overlay {
    opacity: 1;
}

.image-info h6 {
    color: white;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-meta {
    margin-top: 20px;
}

.gallery-meta .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

.modal-xl {
    max-width: 90vw;
}

.modal-content.bg-dark {
    border: none;
}

@media (max-width: 768px) {
    .gallery-images-section {
        padding: 40px 0;
    }
    
    .gallery-image-card {
        margin-bottom: 20px;
    }
    
    .modal-xl {
        max-width: 95vw;
    }
}
