.gt-gallery,
.gt-gallery-wrap {
    --gtg-gap: 18px;
}

.gt-gallery {
    display: grid;
    gap: var(--gtg-gap);
}
.gt-gallery.columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gt-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gt-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gt-gallery.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gt-gallery.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.gt-gallery-layout-masonry {
    display: block;
    column-gap: var(--gtg-gap);
}
.gt-gallery-layout-masonry.columns-1 { columns: 1; }
.gt-gallery-layout-masonry.columns-2 { columns: 2; }
.gt-gallery-layout-masonry.columns-3 { columns: 3; }
.gt-gallery-layout-masonry.columns-4 { columns: 4; }
.gt-gallery-layout-masonry.columns-5 { columns: 5; }
.gt-gallery-layout-masonry.columns-6 { columns: 6; }
.gt-gallery-layout-masonry > .gt-gallery-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--gtg-gap);
    break-inside: avoid;
    page-break-inside: avoid;
}
.gt-gallery-layout-masonry > .gt-gallery-card:nth-child(3n+1) .gt-gallery-link { aspect-ratio: 4 / 5; }
.gt-gallery-layout-masonry > .gt-gallery-card:nth-child(3n+2) .gt-gallery-link { aspect-ratio: 1 / 1.35; }
.gt-gallery-layout-masonry > .gt-gallery-card:nth-child(3n) .gt-gallery-link { aspect-ratio: 5 / 4; }

.gt-gallery-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-style: var(--gtg-border-style, solid);
    border-width: var(--gtg-border-width, 0);
    border-color: var(--gtg-border-color, #dcdcde);
    border-radius: var(--gtg-radius, 18px);
    margin: 0;
}
.gt-gallery-card img,
.gt-gallery-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shadow-none .gt-gallery-card { box-shadow: none; }
.shadow-soft .gt-gallery-card { box-shadow: 0 10px 25px rgba(15,23,42,.08); }
.shadow-medium .gt-gallery-card { box-shadow: 0 14px 32px rgba(15,23,42,.14); }
.shadow-strong .gt-gallery-card { box-shadow: 0 18px 42px rgba(15,23,42,.2); }
.inner-depth-soft .gt-gallery-card::after,
.inner-depth-medium .gt-gallery-card::after,
.inner-depth-strong .gt-gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.inner-depth-soft .gt-gallery-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 10px 18px rgba(15,23,42,.06); }
.inner-depth-medium .gt-gallery-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 14px 22px rgba(15,23,42,.1); }
.inner-depth-strong .gt-gallery-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 18px 28px rgba(15,23,42,.16); }

.gt-gallery-link {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.gt-gallery-link img,
.gt-gallery-link video {
    transition: transform .5s ease;
}
.gt-gallery-link:hover img,
.gt-gallery-link:focus-visible img,
.gt-gallery-link:hover video,
.gt-gallery-link:focus-visible video {
    transform: scale(1.05);
}
.gt-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(180deg, rgba(2,6,23,.12) 0%, rgba(2,6,23,.72) 100%);
    opacity: 0;
    transition: opacity .25s ease;
    text-align: center;
}
.gt-gallery-link:hover .gt-gallery-overlay,
.gt-gallery-link:focus-visible .gt-gallery-overlay {
    opacity: 1;
}
.gt-gallery-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(5px);
    font-size: 24px;
    font-style: normal;
}
.gt-gallery-icon i { line-height: 1; }

.gt-gallery-card-type-video .gt-gallery-link::after,
.gt-gallery-link.is-video::after {
    content: '▶';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.72);
    color: #fff;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(15,23,42,.22);
}
.gt-gallery-video {
    background: #000;
}
.gt-gallery-text,
.gt-gallery-overlay-caption,
.gt-gallery-caption-text {
    font-weight: 600;
}
.gt-gallery-overlay-caption {
    max-width: 100%;
}
.gt-gallery-caption {
    padding: 12px 14px;
}

.gt-gallery > .gt-gallery-card:nth-child(n+25) {
    display: none;
}
.gt-gallery.is-expanded > .gt-gallery-card {
    display: block;
}
.gt-gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.gt-gallery-more {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.gt-gallery-layout-carousel .gt-gallery-card,
.gt-gallery-layout-slider .gt-gallery-card {
    max-width: 100%;
}
.gt-gallery-layout-carousel .gt-gallery-link,
.gt-gallery-layout-slider .gt-gallery-link,
.gt-gallery-layout-slider .gt-gallery-link.is-static {
    aspect-ratio: 16 / 8;
}

.gtg-swiper {
    overflow: hidden;
    padding-bottom: 42px;
}
.gtg-swiper .swiper-slide {
    height: auto;
}
.gtg-swiper .swiper-button-prev,
.gtg-swiper .swiper-button-next {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    color: #fff;
}
.gtg-swiper .swiper-button-prev::after,
.gtg-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.gtg-swiper .swiper-pagination-bullet-active {
    background: #111827;
}

.custom-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 280px;
    max-height: 680px;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    box-shadow: rgb(0 0 0 / 31%) 0 10px 20px, rgb(0 0 0 / 25%) 0 6px 6px !important;
    border-radius: 20px;
}
.custom-slider.is-single-slide {
    min-height: auto;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    z-index: 0;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}
.slide .gt-gallery-card,
.slide .gt-gallery-link,
.slide .gt-gallery-link img,
.slide .gt-gallery-link.is-static {
    display: block;
    width: 100%;
    height: 100%;
}
.slide .gt-gallery-link,
.slide .gt-gallery-link.is-static {
    aspect-ratio: auto;
}
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgb(0 0 0 / 19%);
    color: #fff;
    cursor: pointer !important;
    z-index: 10;
    transition: background .2s ease, transform .2s ease;
}
button.prev:hover, button.next:hover, button.prev:focus-visible, button.next:focus-visible {
    background: rgba(0, 0, 0, 0.72);
}
button.prev:focus-visible, button.next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
button.prev span, button.next span {
    font-size: 28px;
    line-height: 1;
}
button.prev { left: 14px; }
button.next { right: 14px; }
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dots .dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgb(16 16 16 / 22%);
    cursor: pointer;
}
.slider-dots .dot.active,
.slider-dots .dot:hover,
.slider-dots .dot:focus-visible {
    background: rgb(219 219 219 / 95%);
}
.slider-dots .dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.gt-lightbox[hidden] {
    display: none !important;
}
.gt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2,6,23,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gt-lightbox-stage {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.gt-lightbox-image,
.gt-lightbox-video {
    max-width: 100%;
    max-height: calc(88vh - 80px);
    object-fit: contain;
    border-radius: 14px;
}
.gt-lightbox-video {
    background: #000;
}
.gt-lightbox-caption,
.gt-lightbox-counter {
    color: #fff;
    text-align: center;
}
.gt-lightbox-close,
.gt-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
}
.gt-lightbox-close { top: 20px; right: 20px; font-size: 28px; }
.gt-lightbox-nav.is-prev { left: 20px; }
.gt-lightbox-nav.is-next { right: 20px; }

@media (max-width: 1200px) {
    .gt-gallery.columns-5,
    .gt-gallery.columns-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gt-gallery-layout-masonry.columns-5,
    .gt-gallery-layout-masonry.columns-6 { columns: 4; }
}
@media (max-width: 900px) {
    .gt-gallery.columns-3,
    .gt-gallery.columns-4,
    .gt-gallery.columns-5,
    .gt-gallery.columns-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-gallery-layout-masonry.columns-3,
    .gt-gallery-layout-masonry.columns-4,
    .gt-gallery-layout-masonry.columns-5,
    .gt-gallery-layout-masonry.columns-6 { columns: 2; }
}
@media (max-width: 768px) {
    .custom-slider {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }
    button.prev, button.next {
        width: 38px;
        height: 38px;
    }
    button.prev span, button.next span {
        font-size: 22px;
    }
    button.prev { left: 10px; }
    button.next { right: 10px; }
    .slider-dots {
        bottom: 12px;
        gap: 8px;
    }
    .slider-dots .dot {
        width: 9px;
        height: 9px;
    }
}
@media (max-width: 640px) {
    .gt-gallery { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .gt-gallery-layout-masonry { columns: 1 !important; }
    .gt-lightbox-nav { display: none; }
}


.gt-gallery-link.is-video-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #000;
}

.gt-gallery-link.is-video-card .gt-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none;
}

.gt-gallery-video-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(15,23,42,.78);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,.22);
    pointer-events: none;
}

.gt-gallery-video-open .gt-gallery-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    background: rgba(255,255,255,.16);
}

.gt-gallery-video-open .gt-gallery-text {
    font-size: 13px;
}
