.iruak-shared-gallery {
    width: 100%;
    min-width: 0;
}

.iruak-shared-gallery-viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(139, 182, 226, .65);
    border-radius: 20px;
    background: #dceafb;
    box-shadow: 0 24px 48px rgba(6, 42, 89, .17);
}

.iruak-shared-gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    color: #fff;
    border: 0;
    background: #dceafb;
    cursor: zoom-in;
    pointer-events: none;
    transform: scale(.985);
    transition: opacity .45s ease, transform .6s ease;
}

.iruak-shared-gallery-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.iruak-shared-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iruak-shared-gallery-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 64px 24px 22px;
    text-align: left;
    background: linear-gradient(transparent, rgba(4, 28, 62, .86));
    font-size: 13px;
    font-weight: 700;
}

.iruak-shared-gallery-zoom {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(4, 38, 82, .7);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.iruak-shared-gallery-slide:focus-visible {
    outline: 4px solid var(--orange);
    outline-offset: -7px;
}

.iruak-shared-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    margin-top: 16px;
}

.iruak-shared-gallery-arrow,
.iruak-gallery-lightbox-arrow,
.iruak-gallery-lightbox-close {
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 9px 22px rgba(6, 42, 89, .2);
    cursor: pointer;
}

.iruak-shared-gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 19px;
}

.iruak-shared-gallery-arrow:hover,
.iruak-gallery-lightbox-arrow:hover,
.iruak-gallery-lightbox-close:hover {
    background: #0b4f96;
    transform: translateY(-2px);
}

.iruak-shared-gallery-arrow:focus-visible,
.iruak-shared-gallery-dots button:focus-visible,
.iruak-gallery-lightbox button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.iruak-shared-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.iruak-shared-gallery-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a9bdd3;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.iruak-shared-gallery-dots button[aria-current="true"] {
    width: 28px;
    border-radius: 999px;
    background: var(--orange);
}

.iruak-gallery-lightbox {
    width: min(1120px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    overflow: visible;
    padding: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    background: rgba(3, 23, 51, .96);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.iruak-gallery-lightbox::backdrop {
    background: rgba(1, 12, 28, .88);
    backdrop-filter: blur(8px);
}

.iruak-gallery-lightbox figure {
    display: grid;
    place-items: center;
    margin: 0;
}

.iruak-gallery-lightbox img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 145px);
    border-radius: 12px;
    object-fit: contain;
}

.iruak-gallery-lightbox figcaption {
    margin-top: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.iruak-gallery-lightbox-close {
    position: absolute;
    z-index: 3;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    font-size: 27px;
}

.iruak-gallery-lightbox-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 21px;
    transform: translateY(-50%);
}

.iruak-gallery-lightbox-arrow:hover {
    transform: translateY(calc(-50% - 2px));
}

.iruak-gallery-lightbox-arrow.is-previous {
    left: 32px;
}

.iruak-gallery-lightbox-arrow.is-next {
    right: 32px;
}

body.iruak-lightbox-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .iruak-shared-gallery-viewport {
        border-radius: 16px;
    }

    .iruak-shared-gallery-caption {
        padding: 54px 18px 16px;
    }

    .iruak-shared-gallery-zoom {
        top: 12px;
        right: 12px;
    }

    .iruak-shared-gallery-controls {
        gap: 12px;
    }

    .iruak-shared-gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .iruak-shared-gallery-dots {
        gap: 7px;
    }

    .iruak-gallery-lightbox {
        width: calc(100vw - 24px);
        padding: 10px;
    }

    .iruak-gallery-lightbox-arrow {
        top: auto;
        bottom: 22px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .iruak-gallery-lightbox-arrow:hover {
        transform: translateY(-2px);
    }

    .iruak-gallery-lightbox-arrow.is-previous {
        left: 22px;
    }

    .iruak-gallery-lightbox-arrow.is-next {
        right: 22px;
    }

    .iruak-gallery-lightbox figcaption {
        padding: 0 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iruak-shared-gallery-slide,
    .iruak-shared-gallery-arrow,
    .iruak-shared-gallery-dots button,
    .iruak-gallery-lightbox button {
        transition: none;
    }
}
