.fc-full-image-open {
    overflow: hidden;
}

.fc-full-image-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #061820;
    color: var(--fc-cream, #fff2dc);
}

.fc-full-image-viewer::backdrop {
    background: rgba(2, 12, 17, .94);
    backdrop-filter: blur(5px);
}

.fc-full-image-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: max(72px, env(safe-area-inset-top), env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left), env(safe-area-inset-right));
    place-items: center;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 50%, rgba(34, 73, 86, .3), transparent 58%),
        #061820;
    cursor: zoom-out;
}

.fc-full-image-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .48);
    cursor: default;
}

.fc-full-image-close {
    position: fixed;
    z-index: 2;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 242, 220, .55);
    border-radius: 50%;
    background: rgba(7, 24, 31, .92);
    color: var(--fc-cream, #fff2dc);
    font-size: 0;
    cursor: pointer;
}

.fc-full-image-close::before,
.fc-full-image-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.fc-full-image-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.fc-full-image-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.fc-full-image-close:hover,
.fc-full-image-close:focus-visible {
    border-color: var(--fc-gold-light, #f0c36a);
    background: #173946;
    outline: 3px solid rgba(240, 195, 106, .32);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .fc-full-image-stage {
        padding-inline: max(10px, env(safe-area-inset-left), env(safe-area-inset-right));
    }

    .fc-full-image-close {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-full-image-viewer {
        scroll-behavior: auto;
    }
}
