.gh-slider {
    --gh-slider-height: 480px;
    --gh-slider-ratio: 16 / 9;
    --gh-thumb-height: 80px;
    --gh-thumb-width: 112px;
    --gh-lb-backdrop: rgb(0 0 0 / 90%);
    --gh-lb-surface: #111;
    --gh-lb-text: #fff;
    --gh-lb-max-width: 92vw;
    --gh-lb-max-height: 88vh;
    --gh-lb-padding: 24px;
    --gh-lb-gap: 16px;
    --gh-lb-radius: 12px;
    --gh-lb-border-color: rgb(255 255 255 / 12%);
    --gh-lb-border-width: 0px;
    --gh-lb-shadow-color: rgb(0 0 0 / 45%);
    --gh-lb-shadow-blur: 72px;
    --gh-lb-text-align: center;
    --gh-lb-text-size: 16px;
    --gh-lb-counter-color: rgb(255 255 255 / 72%);
    --gh-lb-counter-font-size: 16px;
    --gh-lb-counter-font-weight: 400;
    --gh-lb-counter-font-style: normal;
    --gh-lb-counter-text-transform: none;
    --gh-lb-counter-line-height: 1.4;
    --gh-lb-counter-letter-spacing: normal;
    --gh-lb-thumb-border-style: solid;
    --gh-lb-thumb-border-width: 2px;
    --gh-lb-thumb-border-color: transparent;
    --gh-lb-thumb-active-border-color: currentColor;
    --gh-lb-thumb-radius: 6px;
    --gh-lb-button-color: #fff;
    --gh-lb-button-bg: rgb(0 0 0 / 60%);
    --gh-lb-button-hover-color: #fff;
    --gh-lb-button-hover-bg: rgb(0 0 0 / 80%);
    --gh-lb-button-size: 24px;
    --gh-lb-button-padding: 9px;
    --gh-lb-button-border-color: transparent;
    --gh-lb-button-border-width: 0px;
    --gh-lb-button-radius: 64px;
    position: relative;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.gh-slider__stage,
.gh-slider__main,
.gh-slider__figure,
.gh-slider__link,
.gh-slider__lightbox-trigger,
.gh-slider .swiper-zoom-container {
    min-width: 0;
    width: 100%;
}

.gh-slider__stage { position: relative; }
.gh-slider__figure { position: relative; margin: 0; }
.gh-slider__image { display: block; width: 100%; height: auto; object-position: center center; transition-property: border-radius, opacity, filter; transition-timing-function: ease; }
.gh-slider__lightbox-trigger {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: zoom-in;
}
.gh-slider__lightbox-trigger:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
.gh-slider__lightbox-indicator {
    --gh-indicator-offset-x: 16px;
    --gh-indicator-offset-y: 16px;
    position: absolute;
    z-index: 3;
    top: var(--gh-indicator-offset-y);
    right: var(--gh-indicator-offset-x);
    display: inline-grid;
    place-items: center;
    padding: 10px;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 60%);
    pointer-events: none;
    transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.gh-slider__lightbox-indicator svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.gh-slider__lightbox-trigger:hover .gh-slider__lightbox-indicator { transform: scale(1.06); }
.gh-slider-indicator--top-left .gh-slider__lightbox-indicator { right: auto; left: var(--gh-indicator-offset-x); }
.gh-slider-indicator--bottom-left .gh-slider__lightbox-indicator { top: auto; right: auto; bottom: var(--gh-indicator-offset-y); left: var(--gh-indicator-offset-x); }
.gh-slider-indicator--bottom-right .gh-slider__lightbox-indicator { top: auto; bottom: var(--gh-indicator-offset-y); }
.gh-slider--height-fixed .gh-slider__image { height: var(--gh-slider-height); }
.gh-slider--height-proportional .gh-slider__figure { aspect-ratio: var(--gh-slider-ratio); }
.gh-slider--height-proportional .gh-slider__image { height: 100%; }
.gh-slider--direction-vertical .gh-slider__main { height: var(--gh-slider-height); }

.gh-slider__content { z-index: 2; }
.gh-slider--content-overlay .gh-slider__content {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: #fff;
    background: linear-gradient(transparent, rgb(0 0 0 / 72%));
    pointer-events: none;
}
.gh-slider--content-below .gh-slider__content { padding: 16px 0 0; }
.gh-slider__title { font-weight: 700; }

.gh-slider__navigation { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.gh-slider__arrow {
    --gh-arrow-button-width: 44px;
    --gh-arrow-icon-size: 22px;
    --gh-arrow-transition-duration: .2s;
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--gh-arrow-button-width);
    height: var(--gh-arrow-button-width);
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 58%);
    cursor: pointer;
    pointer-events: auto;
    line-height: 1;
    transform: translateY(-50%);
    transition-property: color, background-color, border-color, box-shadow, opacity;
    transition-duration: var(--gh-arrow-transition-duration);
    transition-timing-function: ease;
}
.gh-slider__arrow > span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }
.gh-slider__arrow svg { display: block; flex: 0 0 auto; width: var(--gh-arrow-icon-size); height: var(--gh-arrow-icon-size); max-width: none; max-height: none; fill: currentColor; object-fit: contain; }
.gh-slider__arrow i { display: block; flex: 0 0 auto; font-size: var(--gh-arrow-icon-size); line-height: 1; }
.gh-slider__arrow--prev { left: 16px; }
.gh-slider__arrow--next { right: 16px; }
.gh-slider__arrow.is-disabled { opacity: .35; cursor: not-allowed; }
.gh-slider__arrow:focus-visible,
.gh-slider__thumb:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.gh-slider-arrows--outside .gh-slider__arrow--prev { left: -52px; }
.gh-slider-arrows--outside .gh-slider__arrow--next { right: -52px; }
.gh-slider-arrows--top .gh-slider__arrow { top: 28px; bottom: auto; transform: none; }
.gh-slider-arrows--bottom .gh-slider__arrow { top: auto; bottom: 0; transform: none; }
.gh-slider-arrow-align--top .gh-slider__arrow { top: 0; bottom: auto; transform: none; }
.gh-slider-arrow-align--center .gh-slider__arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
.gh-slider-arrow-align--bottom .gh-slider__arrow { top: auto; bottom: 0; transform: none; }

.gh-slider--effect-creative .gh-slider__slide { pointer-events: none; }
.gh-slider--effect-creative .gh-slider__slide.swiper-slide-active { z-index: 3 !important; pointer-events: auto; }

.gh-slider .gh-slider__pagination { position: relative; inset: auto; width: 100%; margin-top: 12px; transform: none; }
.gh-slider .gh-slider__pagination.swiper-pagination-bullets:not(.swiper-pagination-bullets-dynamic) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.gh-slider .gh-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0;
    transition: width .2s ease, height .2s ease, border-color .2s ease, border-width .2s ease, border-radius .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.gh-slider .gh-slider__pagination.swiper-pagination-fraction {
    --gh-fraction-distance: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25em;
    margin-top: var(--gh-fraction-distance);
    line-height: 1;
}
.gh-slider .gh-slider__pagination-separator { display: inline-block; flex: 0 0 auto; }
.gh-slider .gh-slider__pagination .swiper-pagination-current,
.gh-slider .gh-slider__pagination .swiper-pagination-total { display: inline-block; flex: 0 0 auto; }
.gh-slider-fraction--top .gh-slider .gh-slider__pagination.swiper-pagination-fraction {
    position: absolute;
    top: var(--gh-fraction-distance);
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 3;
    margin: 0;
}
.gh-slider-fraction--bottom .gh-slider .gh-slider__pagination.swiper-pagination-fraction {
    position: absolute;
    top: auto;
    right: 0;
    bottom: var(--gh-fraction-distance);
    left: 0;
    z-index: 3;
    margin: 0;
}
.gh-slider .gh-slider__pagination.swiper-pagination-progressbar { position: relative; inset: auto; }

.gh-slider__thumbs { width: 100%; min-width: 0; }
.gh-slider__thumbs-wrapper { justify-content: safe center; }
.gh-slider__thumb {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .55;
    overflow: hidden;
    transition-property: border-color, border-width, border-radius, opacity, background-color;
    transition-duration: .2s;
    transition-timing-function: ease;
}
.gh-slider__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gh-slider__thumb.swiper-slide-thumb-active { opacity: 1; }
.gh-slider--thumbs-above { flex-direction: column; }
.gh-slider--thumbs-below { flex-direction: column; }
.gh-slider--thumbs-above .gh-slider__thumb,
.gh-slider--thumbs-below .gh-slider__thumb { height: var(--gh-thumb-height); }
.gh-slider--thumbs-left .gh-slider__thumbs,
.gh-slider--thumbs-right .gh-slider__thumbs { width: var(--gh-thumb-width); height: var(--gh-slider-height); flex: 0 0 var(--gh-thumb-width); }
.gh-slider--thumbs-left .gh-slider__thumb,
.gh-slider--thumbs-right .gh-slider__thumb { width: 100%; height: auto; }
.gh-slider--thumbs-left .gh-slider__thumbs { order: -1; }

.gh-slider__empty {
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 20px;
    border: 1px dashed currentColor;
    border-radius: 8px;
    text-align: center;
}
html.gh-slider-lightbox-open { overflow: hidden; }
.gh-slider-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    color: var(--gh-lb-text, #fff);
}
.gh-slider-lightbox[hidden] { display: none; }
.gh-slider-lightbox [hidden] { display: none !important; }

.gh-slider-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--gh-lb-backdrop, rgb(0 0 0 / 90%));
    cursor: default;
}
.gh-slider-lightbox__dialog {
    position: relative;
    display: grid;
    grid-template: "viewport zoom" minmax(0, 1fr) "navigation navigation" auto "info info" auto / minmax(0, 1fr) auto;
    gap: var(--gh-lb-gap, 16px);
    width: min(var(--gh-lb-max-width, 92vw), calc(100vw - 24px));
    height: min(var(--gh-lb-max-height, 88vh), calc(100vh - 24px));
    max-height: calc(100vh - 24px);
    padding: var(--gh-lb-padding, 24px);
    border: var(--gh-lb-border-width, 0) solid var(--gh-lb-border-color, transparent);
    border-radius: var(--gh-lb-radius, 12px);
    background: var(--gh-lb-surface, #111);
    box-shadow: 0 24px var(--gh-lb-shadow-blur, 72px) var(--gh-lb-shadow-color, rgb(0 0 0 / 45%));
}
.gh-slider-lightbox__viewport {
    grid-area: viewport;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}
.gh-slider-lightbox__viewport.is-zoomed { cursor: grab; }
.gh-slider-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(min(var(--gh-lb-max-height, 88vh), 100vh) - 180px);
    object-fit: contain;
    transform-origin: center;
    user-select: none;
    will-change: transform;
}
.gh-slider-lightbox__button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: var(--gh-lb-button-padding, 9px);
    border: var(--gh-lb-button-border-width, 0) solid var(--gh-lb-button-border-color, transparent);
    border-radius: var(--gh-lb-button-radius, 64px);
    color: var(--gh-lb-button-color, #fff);
    background: var(--gh-lb-button-bg, rgb(0 0 0 / 60%));
    cursor: pointer;
}
.gh-slider-lightbox__button > span { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.gh-slider-lightbox__button svg { width: var(--gh-lb-button-size, 24px); height: var(--gh-lb-button-size, 24px); fill: currentColor; }
.gh-slider-lightbox__button i { font-size: var(--gh-lb-button-size, 24px); line-height: 1; }
.gh-slider-lightbox__button:hover { color: var(--gh-lb-button-hover-color, #fff); background: var(--gh-lb-button-hover-bg, rgb(0 0 0 / 80%)); }
.gh-slider-lightbox__button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.gh-slider-lightbox__close { position: absolute; z-index: 3; top: 10px; right: 10px; }
.gh-slider-lightbox--close-left .gh-slider-lightbox__close { right: auto; left: 10px; }
.gh-slider-lightbox__download {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    text-decoration: none;
}
.gh-slider-lightbox--close-left .gh-slider-lightbox__download { right: 10px; left: auto; }
.gh-slider-lightbox__navigation-strip {
    grid-area: navigation;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--gh-lb-gap, 16px);
    min-width: 0;
}
.gh-slider-lightbox__previous { grid-column: 1; }
.gh-slider-lightbox__next { grid-column: 3; }
.gh-slider-lightbox__zoom {
    grid-area: zoom;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}
.gh-slider-lightbox__zoom > * { pointer-events: auto; }
.gh-slider-lightbox__zoom-button { font-size: 22px; line-height: 1; }
.gh-slider-lightbox__zoom-range {
    appearance: none;
    width: 28px;
    height: clamp(120px, 28vh, 240px);
    margin: 0;
    writing-mode: vertical-lr;
    direction: rtl;
    color: var(--gh-lb-button-color, #fff);
    background: transparent;
    cursor: ns-resize;
}
.gh-slider-lightbox__zoom-range::-webkit-slider-runnable-track { width: 4px; height: 100%; border-radius: 999px; background: rgb(255 255 255 / 38%); }
.gh-slider-lightbox__zoom-range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-left: -7px; border: 3px solid var(--gh-lb-surface, #111); border-radius: 50%; background: currentColor; box-shadow: 0 0 0 1px rgb(255 255 255 / 35%); cursor: ns-resize; }
.gh-slider-lightbox__zoom-range::-moz-range-track { width: 4px; height: 100%; border-radius: 999px; background: rgb(255 255 255 / 38%); }
.gh-slider-lightbox__zoom-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--gh-lb-surface, #111); border-radius: 50%; background: currentColor; box-shadow: 0 0 0 1px rgb(255 255 255 / 35%); cursor: ns-resize; }
.gh-slider-lightbox__zoom-range:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.gh-slider-lightbox__thumbnails {
    grid-column: 2;
    display: flex;
    justify-content: safe center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.gh-slider-lightbox__thumbnail {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    padding: 0;
    overflow: hidden;
    border-width: var(--gh-lb-thumb-border-width, 2px);
    border-style: var(--gh-lb-thumb-border-style, solid);
    border-color: var(--gh-lb-thumb-border-color, transparent);
    border-radius: var(--gh-lb-thumb-radius, 6px);
    background: transparent;
    opacity: .55;
    cursor: pointer;
}
.gh-slider-lightbox__thumbnail.is-active { border-color: var(--gh-lb-thumb-active-border-color, currentColor); opacity: 1; }
.gh-slider-lightbox__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gh-slider-lightbox__thumbnail:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

.gh-slider-lightbox__info { grid-area: info; display: grid; gap: 5px; font-size: var(--gh-lb-text-size, 16px); text-align: var(--gh-lb-text-align, center); }
.gh-slider-lightbox__counter { position: absolute; z-index: 3; top: 18px; left: 50%; color: var(--gh-lb-counter-color, rgb(255 255 255 / 72%)); font-family: var(--gh-lb-counter-font-family, inherit); font-size: var(--gh-lb-counter-font-size, 16px); font-weight: var(--gh-lb-counter-font-weight, 400); font-style: var(--gh-lb-counter-font-style, normal); line-height: var(--gh-lb-counter-line-height, 1.4); letter-spacing: var(--gh-lb-counter-letter-spacing, normal); text-transform: var(--gh-lb-counter-text-transform, none); font-variant-numeric: tabular-nums; transform: translateX(-50%); pointer-events: none; }
.gh-slider-lightbox__title { font-weight: 700; }
.gh-slider-lightbox__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.gh-slider-lightbox--caption-overlay .gh-slider-lightbox__info {
    position: absolute;
    z-index: 1;
    right: var(--gh-lb-padding, 24px);
    bottom: var(--gh-lb-padding, 24px);
    left: var(--gh-lb-padding, 24px);
    padding: 36px 16px 12px;
    background: linear-gradient(transparent, rgb(0 0 0 / 75%));
    pointer-events: none;
}

.gh-slider--thumbs-stacked { flex-direction: column; }
.gh-slider--thumbs-stacked .gh-slider__thumbs { width: 100%; height: auto; flex-basis: auto; order: initial; }
.gh-slider--thumbs-stacked .gh-slider__thumb { width: auto; height: var(--gh-thumb-height); }
.gh-slider--thumbs-stacked.gh-slider--thumbs-mobile-above .gh-slider__thumbs { order: -1; }
.gh-slider--thumbs-stacked.gh-slider--thumbs-mobile-below .gh-slider__thumbs { order: initial; }

@media (prefers-reduced-motion: reduce) {
    .gh-slider *, .gh-slider *::before, .gh-slider *::after,
    .gh-slider-lightbox *, .gh-slider-lightbox *::before, .gh-slider-lightbox *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 767px) {
    .gh-slider-lightbox__dialog {
        grid-template: "viewport" minmax(0, 1fr) "navigation" auto "info" auto / minmax(0, 1fr);
        padding: 12px;
        gap: 10px;
    }
    .gh-slider-lightbox__image { max-height: calc(100vh - 260px); }
    .gh-slider-lightbox__thumbnail { flex-basis: 60px; width: 60px; height: 45px; }
    .gh-slider-lightbox__zoom { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
    .gh-slider-lightbox__zoom-range { height: clamp(100px, 24vh, 180px); }
}
