﻿  /* Fixed-height scroll container */
  .country-listing-gallery-wrapper .gallery {
    display: flex;
    flex-wrap: wrap;
    height: 900px;
    overflow-y: auto;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
  }

  /* Fixed-height image tile */
  .country-listing-gallery-wrapper .item {
    position: relative;
    flex: 0 0 calc(33.333% - 16px);
    height: 260px; /* FIXED tile height */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    scroll-snap-align: start;
  }

  .country-listing-gallery-wrapper .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
  }

  /* Hover effect (image only) */
  .country-listing-gallery-wrapper .item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
  }

  /* Overlay always visible */
  .country-listing-gallery-wrapper .overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
  }

  /* Mobile: one image per row */
  @media (max-width: 768px) {
    .country-listing-gallery-wrapper .item {
      flex: 0 0 100%;
      height: 220px;
    }
  }