/* Gallery Page Styles */
.gallery-hero {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(135deg, #0A1E3D 0%, #1A3A5C 30%, #2D4A6B 60%, #1A3A5C 100%);
    color: var(--white);
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 116, 218, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 191, 165, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero .page-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(10, 116, 218, 0.4),
        0 0 60px rgba(157, 78, 221, 0.3),
        0 0 90px rgba(0, 191, 165, 0.2);
    position: relative;
}

.gallery-hero .page-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.gallery-hero .page-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-filter {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 2px solid var(--light-gray);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: var(--light-gray);
    border: none;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: var(--medium-gray);
}

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

.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.action-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.gallery-grid {
    padding: 5rem 0;
    background: var(--light-gray);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

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

.gallery-item.hidden {
    display: none;
}

.item-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    text-align: center;
    color: var(--text-gray);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.item-info {
    padding: 1.5rem;
}

.item-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.item-badge.render {
    background: #E3F2FD;
    color: #1976D2;
}

.item-badge.photo {
    background: #FFF3E0;
    color: #F57C00;
}

.item-badge.topo {
    background: #F3E5F5;
    color: #7B1FA2;
}

.item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.item-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-image {
    height: 60vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-image .image-placeholder i {
    font-size: 6rem;
}

.modal-info {
    padding: 2rem;
}

.modal-info h3 {
    margin-bottom: 1rem;
}

.modal-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-image {
        height: 40vh;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
