.flyer-gallery-wrapper {
    margin: 1.5rem 0;
}

.flyer-gallery-flyer-link {
    margin-bottom: 1rem;
    font-weight: 500;
}

.flyer-gallery-flyer-link a {
    text-decoration: underline;
}

.flyer-gallery-nomination-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 1.5rem;
}

.flyer-gallery-nomination-button {
    display: block;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: #e30176;
    padding: 10px 20px;
    border: 2px solid #e30176;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.flyer-gallery-nomination-button:hover,
.flyer-gallery-nomination-button:focus-visible {
    color: #e30176;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.flyer-gallery-nomination-button::after {
    content: '\00BB';
    margin-left: 0.4em;
    font-size: 1.2em;
    line-height: 1;
}

.flyer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.flyer-gallery-item {
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.flyer-gallery-item img,
.flyer-gallery-trigger img {
    display: block;
    width: 100%;
    height: auto;
}

.flyer-gallery-trigger {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.flyer-gallery-trigger:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 3px;
}

.flyer-gallery-empty {
    font-style: italic;
    color: #555;
}

@media (prefers-reduced-motion: no-preference) {
    .flyer-gallery-item img,
    .flyer-gallery-trigger img {
        transition: transform 0.3s ease;
    }

    .flyer-gallery-item img:hover,
    .flyer-gallery-trigger img:hover {
        transform: scale(1.03);
    }
}

body.flyer-gallery-lightbox-open {
    overflow: hidden;
}

.flyer-gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.flyer-gallery-lightbox.is-visible {
    display: flex;
}

.flyer-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

.flyer-gallery-lightbox__frame {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: min(960px, 100%);
    background: #0f172a;
    padding: 2rem 4rem;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flyer-gallery-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.flyer-gallery-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flyer-gallery-lightbox__close:hover,
.flyer-gallery-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.flyer-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flyer-gallery-lightbox__nav:hover,
.flyer-gallery-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.flyer-gallery-lightbox__nav--prev {
    left: 12px;
}

.flyer-gallery-lightbox__nav--next {
    right: 12px;
}

.flyer-gallery-lightbox__nav.is-hidden {
    display: none;
}

@media (max-width: 640px) {
    .flyer-gallery-lightbox__frame {
        padding: 1.25rem 2.5rem;
    }

    .flyer-gallery-lightbox__close {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .flyer-gallery-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
