/*
 * Custom thumbnail strip for GLightbox boat gallery.
 * Visible on desktop only; hidden on tablet/mobile where swipe + counter is enough.
 */

.gl-custom-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: none;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.gl-custom-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gl-custom-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.gl-custom-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.gl-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.55;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.gl-thumb:hover,
.gl-thumb:focus {
    opacity: 0.9;
    outline: none;
}

.gl-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.gl-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Desktop only: show thumbs + reserve space so big landscape images
 * are not covered by the strip. Scoped to the boat gallery so standalone
 * a.fancy images keep full-viewport sizing. */
@media (min-width: 950px) {
    .gl-custom-thumbs {
        display: flex;
    }

    .boat-gallery-open .glightbox-container .gslide-image img {
        max-height: calc(100vh - 100px);
    }
}
