/* ========================================
   GALLERY-SPECIFIC STYLES
   These styles will NOT affect existing pages
   ======================================== */

/* Gallery Header */
.gallery-header {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-warm));
    padding: 4rem 2rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Category Filters */
.gallery-filters {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--accent-light);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Georgia', serif;
}

.filter-btn:hover {
    background: var(--accent-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--accent-warm);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-romantic);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 28, 28, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-item-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.gallery-item-category {
    color: var(--accent-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Hide items with fade animation */
.gallery-item.hidden {
    display: none;
}

/* Modal/Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-image-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-romantic);
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    background: var(--accent-warm);
}

.modal-info {
    padding: 2rem;
    background: var(--white);
}

.modal-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-counter {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10001;
    box-shadow: var(--shadow-medium);
}

.modal-nav:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-romantic);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

.modal-nav span {
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .filter-container {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        flex-direction: column;
        width: 95%;
    }
    
    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .modal-prev {
        left: 1rem;
    }
    
    .modal-next {
        right: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 0 1rem 3rem;
    }
    
    .gallery-header {
        padding: 3rem 1rem 2rem;
    }
    
    .gallery-filters {
        padding: 0 1rem;
    }
    
    .modal-image {
        max-height: 50vh;
    }
}