.hero-static-gallery--features .hero-static-card,
.hero-static-gallery--subscription .hero-static-card {
    cursor: zoom-in;
}

.hero-static-gallery--features .hero-static-card:focus-visible,
.hero-static-gallery--subscription .hero-static-card:focus-visible {
    outline: 3px solid rgba(58, 166, 244, 0.72);
    outline-offset: 4px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    width: min(1240px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.image-lightbox[open] {
    display: block;
}

.image-lightbox::backdrop {
    background: rgba(2, 10, 22, 0.76);
    backdrop-filter: blur(9px);
}

.image-lightbox[open]::backdrop {
    animation: image-lightbox-backdrop-in 220ms ease-out both;
}

@keyframes image-lightbox-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-lightbox__panel {
    display: flex;
    width: calc(100% - 136px);
    max-height: calc(100vh - 48px);
    margin: 0 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(126, 197, 251, 0.45);
    border-radius: 20px;
    background: #07182d;
    box-shadow: 0 36px 100px rgba(0, 8, 22, 0.58);
    transform-origin: center;
    will-change: transform, opacity;
}

.image-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 8px 10px 8px 18px;
    color: #e6f5ff;
    background: linear-gradient(180deg, #0c2947, #081c34);
}

.image-lightbox__title {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-lightbox__close,
.image-lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #e6f5ff;
    cursor: pointer;
}

.image-lightbox__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(168, 218, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.image-lightbox__media {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #061426;
}

.image-lightbox__image {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 102px);
    object-fit: contain;
}

.image-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(194, 228, 255, 0.3);
    border-radius: 50%;
    background: rgba(3, 20, 38, 0.72);
    box-shadow: 0 8px 28px rgba(0, 5, 16, 0.36);
    translate: 0 -50%;
    transition: border-color 160ms ease, background 160ms ease, scale 160ms ease;
}

.image-lightbox__nav--previous {
    left: 10px;
}

.image-lightbox__nav--next {
    right: 10px;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible,
.image-lightbox__nav:hover,
.image-lightbox__nav:focus-visible {
    border-color: rgba(194, 228, 255, 0.72);
    background: rgba(10, 91, 154, 0.88);
    outline: none;
}

.image-lightbox__nav:hover,
.image-lightbox__nav:focus-visible {
    scale: 1.06;
}

@media (max-width: 620px) {
    .image-lightbox {
        width: calc(100vw - 8px);
        max-height: calc(100vh - 24px);
    }

    .image-lightbox__panel {
        width: calc(100% - 88px);
        max-height: calc(100vh - 24px);
    }

    .image-lightbox__image {
        max-height: calc(100vh - 78px);
    }

    .image-lightbox__nav {
        width: 38px;
        height: 38px;
    }

    .image-lightbox__nav--previous {
        left: 2px;
    }

    .image-lightbox__nav--next {
        right: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox[open]::backdrop {
        animation: none;
    }
}
