.show-gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 8px;
    height: 430px;
    overflow: visible;
    background: transparent;
}

.show-gallery.show-gallery-single {
    display: block;
}

.show-gallery.show-gallery-has-video {
    grid-template-columns: minmax(235px, 31%) minmax(0, 1fr);
}

.show-gallery-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #e7edf5;
    box-shadow: none;
    contain: paint;
    cursor: pointer;
}

.show-gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .2));
    opacity: 0;
    transition: opacity .2s ease;
}

.show-gallery-tile:hover::after,
.show-gallery-tile:focus-visible::after {
    opacity: 1;
}

.show-gallery-tile img,
.show-gallery-tile video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.show-gallery-tile:hover > img,
.show-gallery-tile:hover > video {
    transform: scale(1.018);
}

.show-gallery-main {
    width: 100%;
    height: 100%;
}

.show-gallery-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

.show-gallery-side-count-1 .show-gallery-tile {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.show-gallery-side-count-2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.show-gallery-side-count-3 .show-gallery-tile:first-child {
    grid-row: 1 / -1;
}

.show-gallery-video {
    color: #fff;
}

.show-gallery-video.is-playing .show-gallery-poster {
    visibility: hidden;
}

.show-gallery-author {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.show-gallery-author b {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #344054;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.show-gallery-play,
.show-gallery-expand {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.show-gallery-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .16), rgba(46, 48, 51, .54) 46%, rgba(17, 19, 23, .68) 100%);
    box-shadow: 0 11px 28px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .18s ease, opacity .16s ease, background .18s ease, box-shadow .18s ease;
}

.show-gallery-play:hover,
.show-gallery-play:focus-visible {
    transform: translate(-50%, -50%) scale(1.04);
    background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .2), rgba(46, 48, 51, .62) 46%, rgba(17, 19, 23, .76) 100%);
    box-shadow: 0 13px 30px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.show-gallery-control-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}

.show-gallery-control-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
}

.show-gallery-control-play {
    transform: translate(calc(-50% + 1px), -50%);
}

.show-gallery-control-pause {
    display: none;
    stroke-width: 2.55;
}

.show-gallery-video.is-playing .show-gallery-control-play {
    display: none;
}

.show-gallery-video.is-playing .show-gallery-control-pause {
    display: block;
}

.show-gallery-video.is-playing .show-gallery-play {
    opacity: 0;
    pointer-events: none;
}

.show-gallery-video.is-playing:hover .show-gallery-play,
.show-gallery-video.is-playing:focus-within .show-gallery-play {
    opacity: .94;
    pointer-events: auto;
}

.show-gallery-video.is-playing.is-control-idle .show-gallery-play,
.show-gallery-video.is-playing.is-control-idle:hover .show-gallery-play,
.show-gallery-video.is-playing.is-control-idle:focus-within .show-gallery-play {
    opacity: 0;
    pointer-events: none;
}

.show-gallery-expand {
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 24, 40, .42);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: .88;
    transform: scale(.96);
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.show-gallery-expand:hover,
.show-gallery-tile:hover .show-gallery-expand,
.show-gallery-tile:focus-visible .show-gallery-expand {
    transform: translate(2px, -2px) scale(1.06);
    opacity: 1;
    background: rgba(16, 24, 40, .6);
}

.show-gallery-expand-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #fff;
    border-style: solid;
}

.show-gallery-expand-arrow-a {
    right: 8px;
    top: 8px;
    border-width: 2px 2px 0 0;
}

.show-gallery-expand-arrow-b {
    left: 8px;
    bottom: 8px;
    border-width: 0 0 2px 2px;
}

@media (hover: hover) {
    .show-gallery-expand {
        opacity: .62;
        transform: translate(7px, 7px) scale(.82);
    }

    .show-gallery-tile:hover .show-gallery-expand,
    .show-gallery-tile:focus-visible .show-gallery-expand {
        opacity: 1;
        transform: translate(2px, -2px) scale(1.06);
    }
}

.show-photo-count {
    z-index: 3;
}

.show-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 8, 14, .94);
    color: #fff;
}

.show-lightbox.is-open {
    display: flex;
}

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

.show-lightbox-dialog {
    width: min(1180px, 100%);
    height: min(92vh, 860px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    border-radius: 14px;
    background: #080b10;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.show-lightbox-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 8px 14px 8px 20px;
}

.show-lightbox-counter {
    color: #aeb8c6;
    font-size: 13px;
}

.show-lightbox-close {
    position: static;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.show-lightbox-stage {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    min-height: 0;
    background: #030507;
}

.show-lightbox-viewer {
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-lightbox-viewer img,
.show-lightbox-viewer video {
    display: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

.show-lightbox-viewer img.is-active,
.show-lightbox-viewer video.is-active {
    display: block;
}

.show-lightbox-arrow {
    width: 44px;
    height: 44px;
    margin: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.show-lightbox-arrow:disabled {
    visibility: hidden;
}

.show-lightbox-caption {
    min-height: 24px;
    padding: 10px 20px 2px;
    color: #dce3ec;
    font-size: 14px;
}

.show-lightbox-caption small {
    margin-left: 10px;
    color: #97a5b6;
}

.show-lightbox-thumbs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 12px 20px 16px;
}

.show-lightbox-thumb {
    position: relative;
    flex: 0 0 82px;
    height: 58px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    padding: 0;
    background: #161b23;
    cursor: pointer;
}

.show-lightbox-thumb.is-active {
    border-color: #fff;
}

.show-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-lightbox-thumb.is-video::after {
    content: "\25B6";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 4px #000;
}

@media (max-width: 991px) {
    .show-gallery {
        height: 380px;
        grid-template-columns: minmax(0, 1.35fr) minmax(230px, 1fr);
        aspect-ratio: auto;
    }

    .show-gallery.show-gallery-has-video {
        grid-template-columns: minmax(210px, 32%) minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .show-gallery {
        --show-gallery-mobile-gap: 10px;
        --show-gallery-mobile-height: clamp(304px, 82vw, 440px);
        --show-gallery-mobile-main-width: clamp(172px, 48vw, 286px);
        --show-gallery-mobile-side-width: clamp(188px, 52vw, 292px);
        display: flex;
        align-items: stretch;
        gap: var(--show-gallery-mobile-gap);
        height: var(--show-gallery-mobile-height);
        aspect-ratio: auto;
        padding: 0 0 4px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 0;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }

    .show-gallery::-webkit-scrollbar {
        display: none;
    }

    .show-gallery-main {
        flex: 0 0 var(--show-gallery-mobile-main-width);
        width: var(--show-gallery-mobile-main-width);
        height: 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .show-gallery-side {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: var(--show-gallery-mobile-side-width);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        flex: 0 0 auto;
        width: max-content;
        height: 100%;
        gap: var(--show-gallery-mobile-gap);
        min-width: max-content;
        scroll-snap-align: start;
    }

    .show-gallery-side .show-gallery-tile {
        grid-column: auto;
        grid-row: auto;
    }

    .show-gallery-side .show-gallery-tile:only-child {
        grid-row: 1 / 3;
    }

    .show-gallery-side-count-1 {
        grid-auto-columns: clamp(210px, 64vw, 300px);
    }

    .show-gallery-side-count-3 .show-gallery-tile:first-child {
        grid-row: auto;
    }

    .show-gallery.show-gallery-single {
        display: block;
        height: clamp(240px, calc((100vw - 28px) * .74), 330px);
        padding: 0;
        overflow: hidden;
        border-radius: 14px;
    }

    .show-gallery.show-gallery-single .show-gallery-main {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .show-gallery-play {
        width: 54px;
        height: 54px;
    }

    .show-gallery-author {
        left: 10px;
        top: 10px;
    }

    .show-gallery-video.is-playing .show-gallery-play,
    .show-gallery-video.is-playing:hover .show-gallery-play,
    .show-gallery-video.is-playing:focus-within .show-gallery-play {
        opacity: 0;
        pointer-events: none;
    }

    .show-lightbox {
        padding: 0;
    }

    .show-lightbox-dialog {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }

    .show-lightbox-stage {
        grid-template-columns: 1fr;
    }

    .show-lightbox-arrow {
        display: none;
    }

    .show-lightbox-viewer {
        grid-column: 1;
    }
}
