.nv-event-gallery {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.09), transparent 36rem),
        radial-gradient(circle at 92% 16%, rgba(168, 85, 247, 0.12), transparent 34rem),
        #050711;
}

.nv-event-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.nv-event-gallery__shell {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, 80rem);
    margin-inline: auto;
    padding-block: 4.25rem 4.75rem;
}

.nv-event-gallery__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 31rem);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.nv-event-gallery__eyebrow,
.nv-event-gallery-block__eyebrow {
    margin: 0;
    color: rgb(103 232 249);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.nv-event-gallery__header h2 {
    margin: 0.45rem 0 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.nv-event-gallery__intro {
    margin: 0;
    color: rgb(161 161 170);
    font-size: 0.93rem;
    line-height: 1.75;
}

.nv-event-gallery__blocks {
    display: grid;
    gap: 1.25rem;
}

.nv-event-gallery-block {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
    min-height: 23rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 10, 20, 0.92));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.nv-event-gallery-block::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.03);
}

.nv-event-gallery-block--image_right {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
}

.nv-event-gallery-block--image_right .nv-event-gallery-block__media {
    grid-column: 2;
    grid-row: 1;
}

.nv-event-gallery-block--image_right .nv-event-gallery-block__copy {
    grid-column: 1;
    grid-row: 1;
}

.nv-event-gallery-block__media {
    position: relative;
    min-width: 0;
    min-height: 23rem;
    margin: 0;
    background: #090c16;
}

.nv-event-gallery-block__image-button,
.nv-event-gallery-mosaic__item {
    appearance: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: zoom-in;
}

.nv-event-gallery-block__image-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.nv-event-gallery-block__image-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(2, 6, 23, 0.62), transparent 40%),
        linear-gradient(to right, transparent 72%, rgba(2, 6, 23, 0.16));
    transition: opacity 220ms ease;
}

.nv-event-gallery-block__image-button img,
.nv-event-gallery-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms cubic-bezier(.2,.7,.2,1), filter 250ms ease;
}

.nv-event-gallery-block__image-button:hover img,
.nv-event-gallery-mosaic__item:hover img {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.03);
}

.nv-event-gallery-block__image-button:focus-visible,
.nv-event-gallery-mosaic__item:focus-visible,
.nv-event-gallery-lightbox__close:focus-visible {
    outline: 2px solid rgb(103 232 249);
    outline-offset: -4px;
}

.nv-event-gallery-block__zoom,
.nv-event-gallery-mosaic__zoom {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
    color: white;
    font-size: 1rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.nv-event-gallery-block__number,
.nv-event-gallery-mosaic__number {
    position: absolute;
    z-index: 2;
    left: 1rem;
    bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.nv-event-gallery-block figcaption {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: 0.85rem;
    max-width: min(68%, 28rem);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-event-gallery-block__copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.65rem, 4vw, 3.25rem);
}

.nv-event-gallery-block__copy::before {
    content: '';
    width: 3.2rem;
    height: 2px;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, rgb(34 211 238), rgb(168 85 247));
}

.nv-event-gallery-block__copy h3 {
    margin: 0.65rem 0 0;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.nv-event-gallery-block__body {
    margin-top: 1.1rem;
    color: rgb(212 212 216);
    font-size: 0.94rem;
    line-height: 1.78;
}

.nv-event-gallery-block__body > :first-child {
    margin-top: 0;
}

.nv-event-gallery-block__body > :last-child {
    margin-bottom: 0;
}

.nv-event-gallery-block__body p,
.nv-event-gallery-block__body ul,
.nv-event-gallery-block__body ol,
.nv-event-gallery-block__body blockquote,
.nv-event-gallery-block__body h3 {
    margin-block: 0.7rem;
}

.nv-event-gallery-block__body ul,
.nv-event-gallery-block__body ol {
    padding-left: 1.25rem;
}

.nv-event-gallery-block__body a {
    color: rgb(103 232 249);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.nv-event-gallery-block__body blockquote {
    padding-left: 1rem;
    border-left: 2px solid rgba(168, 85, 247, 0.75);
    color: rgb(228 228 231);
}

.nv-event-gallery-block--full_width {
    display: block;
    min-height: 0;
    overflow: visible;
    padding-bottom: 1.6rem;
}

.nv-event-gallery-block--full_width .nv-event-gallery-block__media {
    min-height: clamp(20rem, 47vw, 37rem);
    border-radius: 1.75rem 1.75rem 1.15rem 1.15rem;
    overflow: hidden;
}

.nv-event-gallery-block--full_width .nv-event-gallery-block__copy {
    width: min(76%, 58rem);
    margin: -4rem 0 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.35rem;
    background: rgba(8, 10, 20, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.nv-event-gallery-block--visual-only {
    display: block;
    min-height: 0;
}

.nv-event-gallery-block--visual-only .nv-event-gallery-block__media {
    min-height: clamp(18rem, 44vw, 34rem);
}

.nv-event-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 13rem;
    gap: 0.8rem;
}

.nv-event-gallery-mosaic__item {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.35rem;
    background: #090c16;
}

.nv-event-gallery-mosaic__item:first-child {
    grid-column: span 8;
    grid-row: span 2;
}

.nv-event-gallery-mosaic__item:nth-child(4n + 2),
.nv-event-gallery-mosaic__item:nth-child(4n + 3) {
    grid-column: span 4;
}

.nv-event-gallery-mosaic__item:nth-child(4n + 4),
.nv-event-gallery-mosaic__item:nth-child(4n + 5) {
    grid-column: span 6;
}

.nv-event-gallery-mosaic__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.62), transparent 48%);
}

.nv-event-gallery-lightbox {
    width: min(92vw, 78rem);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.6rem;
    background: rgba(5, 7, 17, 0.98);
    color: white;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.nv-event-gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.nv-event-gallery-lightbox__stage {
    display: grid;
    max-height: calc(92vh - 4rem);
    place-items: center;
    overflow: hidden;
    border-radius: 1.55rem 1.55rem 0 0;
    background: #02030a;
}

.nv-event-gallery-lightbox__stage img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 4rem);
    object-fit: contain;
}

.nv-event-gallery-lightbox__caption {
    margin: 0;
    padding: 0.85rem 4.4rem 1rem 1.2rem;
    color: rgb(212 212 216);
    font-size: 0.82rem;
    line-height: 1.55;
}

.nv-event-gallery-lightbox__close {
    position: absolute;
    z-index: 4;
    top: -0.85rem;
    right: -0.85rem;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: #0b0d16;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.36);
}

@media (max-width: 900px) {
    .nv-event-gallery__shell {
        width: min(100% - 2rem, 80rem);
        padding-block: 3.25rem 3.6rem;
    }

    .nv-event-gallery__header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nv-event-gallery-block,
    .nv-event-gallery-block--image_right {
        grid-template-columns: 1fr;
    }

    .nv-event-gallery-block--image_right .nv-event-gallery-block__media,
    .nv-event-gallery-block--image_right .nv-event-gallery-block__copy {
        grid-column: 1;
    }

    .nv-event-gallery-block--image_right .nv-event-gallery-block__media {
        grid-row: 1;
    }

    .nv-event-gallery-block--image_right .nv-event-gallery-block__copy {
        grid-row: 2;
    }

    .nv-event-gallery-block__media {
        min-height: clamp(18rem, 58vw, 28rem);
    }

    .nv-event-gallery-block--full_width .nv-event-gallery-block__copy {
        width: calc(100% - 2rem);
        margin: -2.2rem 1rem 0;
    }

    .nv-event-gallery-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 12rem;
    }

    .nv-event-gallery-mosaic__item,
    .nv-event-gallery-mosaic__item:first-child,
    .nv-event-gallery-mosaic__item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .nv-event-gallery-mosaic__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 600px) {
    .nv-event-gallery__shell {
        width: min(100% - 1.25rem, 80rem);
        padding-block: 2.75rem 3rem;
    }

    .nv-event-gallery__header {
        margin-bottom: 1.35rem;
    }

    .nv-event-gallery-block {
        border-radius: 1.35rem;
    }

    .nv-event-gallery-block__media,
    .nv-event-gallery-block--visual-only .nv-event-gallery-block__media,
    .nv-event-gallery-block--full_width .nv-event-gallery-block__media {
        min-height: 16rem;
    }

    .nv-event-gallery-block__copy {
        padding: 1.45rem;
    }

    .nv-event-gallery-block--full_width {
        padding-bottom: 1rem;
    }

    .nv-event-gallery-block--full_width .nv-event-gallery-block__copy {
        width: calc(100% - 1rem);
        margin: -1.3rem 0.5rem 0;
    }

    .nv-event-gallery-block figcaption {
        display: none;
    }

    .nv-event-gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 14rem;
    }

    .nv-event-gallery-mosaic__item,
    .nv-event-gallery-mosaic__item:first-child,
    .nv-event-gallery-mosaic__item:nth-child(n) {
        grid-column: 1;
        grid-row: span 1;
    }

    .nv-event-gallery-mosaic__item:first-child {
        grid-row: span 2;
    }

    .nv-event-gallery-lightbox {
        width: calc(100vw - 1rem);
        border-radius: 1.1rem;
    }

    .nv-event-gallery-lightbox__close {
        top: 0.55rem;
        right: 0.55rem;
    }
}

.nv-event-gallery-mosaic__caption {
    position: absolute;
    z-index: 2;
    left: 3.7rem;
    right: 4rem;
    bottom: 0.78rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Galeria editorial quando usada como primeiro bloco do corpo do evento. */
.nv-event-gallery--body {
    overflow: visible;
    margin-bottom: 3rem;
    border-bottom: 0;
    background: transparent;
}

.nv-event-gallery--body::before {
    display: none;
}

.nv-event-gallery--body .nv-event-gallery__shell {
    width: 100%;
    margin-inline: 0;
    padding-block: 0;
}

@media (max-width: 720px) {
    .nv-event-gallery--body {
        margin-bottom: 2rem;
    }
}
