/* ==========================================================================
   Tour Gallery — Styles
   ========================================================================== */

.tg-gallery {
    max-width: 800px;

}

/* ------ Main / big image ------ */
.tg-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    line-height: 0; /* remove gap below img */
}

.tg-main-image img {
    width: 100%;
    height: 481px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* ------ Thumbnail row ------ */
.tg-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.tg-thumb {
    /* Reset button styles */
    appearance: none;
    border: 3px solid transparent;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    transition: border-color 0.25s ease, opacity 0.25s ease;
}

.tg-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
}

/* Active / selected thumbnail */
.tg-thumb--active {
    border-color: #2d6cdf;
}

/* Hover */
.tg-thumb:not(.tg-thumb--active):hover {
    opacity: 0.8;
}

/* Focus visible for accessibility */
.tg-thumb:focus-visible {
    outline: 2px solid #2d6cdf;
    outline-offset: 2px;
}

/* ------ Responsive: 2 columns × 2 rows on mobile ------ */
@media (max-width: 767px) {
    .tg-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 8px;
    }

    .tg-main-image,
    .tg-main-image img {
        border-radius: 6px;
    }
}