/* Gallery Styles */

/* Gallery Header */
.gallery-header {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--color-bg);
}

.gallery-header .universal-h2 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease-out;
}

.gallery-subtitle {
    font-size: 19px;
    color: var(--color-text-light);
    animation: fadeInUp 0.8s ease-out;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--color-surface);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Gallery Item */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item[data-aos-delay="0"] {
    animation-delay: 0s;
}

.gallery-item[data-aos-delay="100"] {
    animation-delay: 0.1s;
}

.gallery-item[data-aos-delay="200"] {
    animation-delay: 0.2s;
}

.gallery-item[data-aos-delay="300"] {
    animation-delay: 0.3s;
}

.gallery-item[data-aos-delay="400"] {
    animation-delay: 0.4s;
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-inner:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.view-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
    border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    color: #fff;
    position: fixed;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close {
    top: 20px;
    right: 40px;
    font-size: 50px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #667eea;
    transform: scale(1.2);
}

.lightbox-prev {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 10000;
}

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

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-item-inner img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 100px 0 40px;
    }

    .gallery-header .universal-h2 {
        font-size: 36px;
    }

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item-inner img {
        height: 300px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-header .universal-h2 {
        font-size: 28px;
    }

    .gallery-subtitle {
        font-size: 16px;
    }

    .gallery-item-inner img {
        height: 250px;
    }

    .view-text {
        font-size: 14px;
    }
}

/* Active Navigation Link */
.main-navigation__ul a.active {
    color: #667eea;
    font-weight: 600;
}