/* Thumbnail Button Styles */
.thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--color-border, #E3E3E3);
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: block;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.1);
  opacity: 0.9;
}

.thumbnail--active {
  outline: 3px solid var(--color-primary, #0D4C92);
  outline-offset: -3px;
}

/* Thumbnail Overlay for "All Photos" Button */
.thumbnail--overlay {
  position: relative;
}

.thumbnail__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  transition: background 0.3s ease;
}

.thumbnail--overlay:hover .thumbnail__overlay {
  background: rgba(0, 0, 0, 0.75);
}

.thumbnail__overlay .icon--images {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.thumbnail__overlay span {
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Ensure gallery displays properly */
.tour-hero__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 500px;
  min-height: 400px;
}

.tour-hero__main {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.tour-hero__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tour-hero__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-height: none;
  }

  .tour-hero__main {
    min-height: 300px;
  }

  .tour-hero__thumbnails {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    min-height: 80px;
  }
}
