/* TAGS Awards 2026 - Gallery */

.tags-gallery {
    background: #FAF8F5;
    padding: 64px 0 80px;
}

.tags-gallery__year {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px 0 28px;
}

.tags-gallery__year:first-child {
    margin-top: 0;
}

.tags-gallery__year h2 {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    color: var(--color-primary-dark, #16161A);
    margin: 0;
    white-space: nowrap;
}

.tags-gallery__year::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent, #CD9C21), rgba(205, 156, 33, 0));
}

.tags-gallery__year-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent, #CD9C21), var(--color-accent-light, #F0DA6A));
    color: var(--color-text-ink, #1A1A1E);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tags-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tags-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #16161A;
    box-shadow: 0 6px 18px rgba(20, 20, 24, 0.1);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.tags-gallery__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tags-gallery__item:hover {
    box-shadow: 0 14px 32px rgba(20, 20, 24, 0.2);
}

.tags-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tags-gallery__item:hover img {
    transform: scale(1.06);
}

.tags-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(22, 22, 26, 0.75) 0%, rgba(22, 22, 26, 0) 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tags-gallery__item:hover .tags-gallery__overlay {
    opacity: 1;
}

.tags-gallery__zoom {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent, #CD9C21), var(--color-accent-light, #F0DA6A));
    color: var(--color-text-ink, #1A1A1E);
    transform: scale(0.7);
    transition: transform 0.25s ease;
}

.tags-gallery__item:hover .tags-gallery__zoom {
    transform: scale(1);
}

.tags-gallery__zoom svg {
    width: 18px;
    height: 18px;
}

/* Magnific Popup theme overrides */
.mfp-bg {
    background: #0D1017;
    opacity: 0.92;
}

.mfp-figure figure {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

button.mfp-close,
button.mfp-arrow {
    color: #FDFCFE;
    opacity: 0.85;
}

button.mfp-close:hover,
button.mfp-arrow:hover {
    color: var(--color-accent, #CD9C21);
    opacity: 1;
}

.mfp-title {
    font-family: var(--font-body, 'Montserrat', sans-serif);
}

@media (max-width: 991px) {
    .tags-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 575px) {
    .tags-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tags-gallery__year {
        margin: 40px 0 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tags-gallery__item,
    .tags-gallery__item img,
    .tags-gallery__overlay,
    .tags-gallery__zoom {
        transition: none !important;
        transform: none !important;
    }
}
