/* V99 — Gallery cards: preserve the original photo in the upper 60% and use
   a TripWithEra footer in the lower 40%. No tint/filter is applied to photos. */

/* Keep the actual photo completely original. */
.page-gallery .gallery-photo-media {
  background: #eef6f4 !important;
}
.page-gallery .gallery-photo-media img {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.page-gallery .gallery-photo-media::before,
.page-gallery .gallery-photo-media::after {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}
.page-gallery .gallery-photo-card:hover .gallery-photo-media img,
.page-gallery .gallery-photo-card:focus-within .gallery-photo-media img {
  filter: none !important;
  opacity: 1 !important;
}

/* Lower 40% footer: theme background, gold top border, centered white copy. */
.page-gallery .gallery-photo-copy {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 40% !important;
  min-height: 118px !important;
  max-height: 44% !important;
  box-sizing: border-box !important;
  padding: 12px 16px 11px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-top: 3px solid #F6BD55 !important;
  border-radius: 0 !important;
  background: rgba(6, 56, 68, .96) !important;
  box-shadow: 0 -8px 24px rgba(6, 56, 68, .16) !important;
  color: #fff !important;
  text-align: center !important;
}
.page-gallery .gallery-photo-copy strong {
  display: -webkit-box !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  font-family: var(--twe-font-semibold-semicondensed, 'Bahnschrift SemiBold SemiCondensed', 'Bahnschrift', Arial, sans-serif) !important;
  font-size: clamp(.98rem, 1.2vw, 1.16rem) !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
  letter-spacing: .005em !important;
  text-align: center !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
.page-gallery .gallery-photo-copy small {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: rgba(255,255,255,.86) !important;
  font-size: .76rem !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.page-gallery .gallery-photo-view {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: #F6BD55 !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

/* The upper portion remains visually untouched; only a subtle image zoom is
   retained for interaction. */
.page-gallery .gallery-photo-card:hover .gallery-photo-media img,
.page-gallery .gallery-photo-card:focus-within .gallery-photo-media img {
  transform: scale(1.035) !important;
}

@media (max-width: 620px) {
  .page-gallery .gallery-photo-open {
    min-height: 300px !important;
  }
  .page-gallery .gallery-photo-copy {
    height: 40% !important;
    min-height: 116px !important;
    max-height: 44% !important;
    padding: 10px 12px 9px !important;
    gap: 4px !important;
  }
  .page-gallery .gallery-photo-copy strong {
    font-size: .96rem !important;
  }
  .page-gallery .gallery-photo-copy small {
    font-size: .70rem !important;
  }
  .page-gallery .gallery-photo-view {
    font-size: .68rem !important;
  }
}
