/* ── Gallery wrapper ─────────────────────────────── */
.boat-image-gallery {
    margin-bottom: 30px;
}

/* ── Main slider ─────────────────────────────────── */
.boat-image-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

.boat-image-main .swiper-slide {
    line-height: 0;
    cursor: zoom-in;
}

.boat-image-main-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.boat-image-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Navigation buttons ──────────────────────────── */
.boat-image-main .swiper-button-prev,
.boat-image-main .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    transition: background 0.2s;
    --swiper-navigation-size: 16px;
}

.boat-image-main .swiper-button-prev:hover,
.boat-image-main .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.72);
}

/* Disabled buttons must absorb clicks — otherwise pointer-events:none
   lets clicks fall through to the slide and trigger the lightbox. */
.boat-image-main .swiper-button-disabled {
    pointer-events: auto !important;
    cursor: default;
}

/* ── Thumbnails ──────────────────────────────────── */
.boat-image-thumbs {
    margin-top: 12px;
    padding: 10px;
}

.boat-image-thumbs .swiper-slide {
    width: 120px;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.25s;
}

.boat-image-thumbs .swiper-slide:hover {
    opacity: 0.75;
}

.boat-image-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.image-thumb {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.25s;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.boat-image-thumbs .swiper-slide:hover .image-thumb img {
    transform: scale(1.06);
}

.boat-image-thumbs .swiper-slide-thumb-active .image-thumb {
    box-shadow: 0 0 0 2px #3d6fa0, 0 0 10px 3px rgba(61, 111, 160, 0.55);
}

/* ── Lightbox ────────────────────────────────────── */
.boat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.boat-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.boat-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.boat-lightbox-content {
    position: relative;
    z-index: 1;
}

.boat-lightbox-content img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.boat-lightbox-close,
.boat-lightbox-prev,
.boat-lightbox-next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    font-family: inherit;
}

.boat-lightbox-close:hover,
.boat-lightbox-prev:hover,
.boat-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.boat-lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.boat-lightbox-prev,
.boat-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 72px;
    border-radius: 6px;
    font-size: 24px;
    transition: background 0.2s, transform 0.15s;
}

.boat-lightbox-prev:hover,
.boat-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.06);
}

.boat-lightbox-prev { left: 16px; }
.boat-lightbox-next { right: 16px; }

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