/* V98 — restore the original selected-album design, remove mobile horizontal
   overflow, keep gallery copy centered, and apply a stronger TripWithEra
   colour treatment to thumbnails without changing the original linked file. */

/* ---------- Filter: responsive, never horizontal-scroll ---------- */
.page-gallery .gallery-controls-scroll,
.page-gallery .gallery-summary-scroll {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  min-width: 0 !important;
  scrollbar-width: none !important;
}
.page-gallery .gallery-controls-scroll::-webkit-scrollbar,
.page-gallery .gallery-summary-scroll::-webkit-scrollbar {
  display: none !important;
}

.page-gallery .gallery-filter-bar {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 1180px !important;
  grid-template-columns: minmax(260px, 1.7fr) minmax(130px, .7fr) minmax(150px, .8fr) auto !important;
  gap: 14px !important;
  margin: 0 auto 16px !important;
}
.page-gallery .gallery-filter-bar .field,
.page-gallery .gallery-filter-actions {
  min-width: 0 !important;
}
.page-gallery .gallery-filter-actions {
  grid-column: auto !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}
.page-gallery .gallery-filter-actions .btn {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

/* ---------- Selected tour/package block: original theme card, centered ---------- */
.page-gallery .gallery-summary-scroll {
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}
.page-gallery .gallery-selected-tour-summary {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 20px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: linear-gradient(135deg, #cfe2df, #e7f2f0) !important;
  border: 0 !important;
  border-left: 5px solid #F6BD55 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-align: center !important;
}
.page-gallery .gallery-selected-tour-summary > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}
.page-gallery .gallery-selected-tour-summary span,
.page-gallery .gallery-selected-tour-summary strong,
.page-gallery .gallery-selected-tour-summary small {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}
.page-gallery .gallery-selected-tour-summary span {
  color: #0A5C49 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: none !important;
}
.page-gallery .gallery-selected-tour-summary strong {
  color: #063844 !important;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem) !important;
  line-height: 1.22 !important;
}
.page-gallery .gallery-selected-tour-summary small {
  color: #4f6970 !important;
  font-size: .84rem !important;
  line-height: 1.35 !important;
}
.page-gallery .gallery-selected-tour-summary .gallery-back-button {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 9px 13px !important;
  border-color: #063844 !important;
  color: #063844 !important;
  font-size: .78rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}
.page-gallery .gallery-selected-tour-summary .gallery-back-button:hover {
  background: #063844 !important;
  color: #fff !important;
}

/* ---------- Gallery cards: keep the previous design, only center copy ---------- */
.page-gallery .gallery-photo-copy {
  inset: auto 0 0 !important;
  min-height: 56% !important;
  padding: 70px 18px 17px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: center !important;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(4,37,45,.40) 25%,
    rgba(4,37,45,.96) 100%) !important;
}
.page-gallery .gallery-photo-copy strong,
.page-gallery .gallery-photo-copy small,
.page-gallery .gallery-photo-view {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
}
.page-gallery .gallery-photo-album {
  display: none !important;
}

/* Strong TripWithEra colour treatment on thumbnails only. The anchor href
   still opens/downloads the untouched original image. */
.page-gallery .gallery-photo-media {
  background: #063844 !important;
}
.page-gallery .gallery-photo-media img {
  filter: grayscale(.22) saturate(.56) contrast(1.12) brightness(.88) !important;
}
.page-gallery .gallery-photo-media::before,
.page-gallery .gallery-photo-media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.page-gallery .gallery-photo-media::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(246,189,85,.30), transparent 35%),
    linear-gradient(135deg, rgba(6,56,68,.78), rgba(10,92,73,.60)) !important;
  mix-blend-mode: color !important;
  opacity: .86 !important;
}
.page-gallery .gallery-photo-media::after {
  background:
    linear-gradient(180deg, rgba(238,246,244,.05), rgba(6,56,68,.26)),
    linear-gradient(135deg, rgba(6,56,68,.24), rgba(10,92,73,.14) 62%, rgba(246,189,85,.14)) !important;
  mix-blend-mode: multiply !important;
  opacity: .88 !important;
}
.page-gallery .gallery-photo-card:hover .gallery-photo-media img,
.page-gallery .gallery-photo-card:focus-within .gallery-photo-media img {
  filter: grayscale(.12) saturate(.68) contrast(1.10) brightness(.92) !important;
}
.page-gallery .gallery-photo-card:hover .gallery-photo-media::before,
.page-gallery .gallery-photo-card:focus-within .gallery-photo-media::before {
  opacity: .76 !important;
}
.page-gallery .gallery-photo-card:hover .gallery-photo-media::after,
.page-gallery .gallery-photo-card:focus-within .gallery-photo-media::after {
  opacity: .78 !important;
}

@media (max-width: 920px) {
  .page-gallery .gallery-filter-bar {
    grid-template-columns: minmax(0, 1.3fr) minmax(120px, .7fr) !important;
  }
  .page-gallery .gallery-filter-bar .gallery-album-field {
    grid-column: 1 / -1 !important;
  }
  .page-gallery .gallery-filter-actions {
    grid-column: 1 / -1 !important;
    justify-content: stretch !important;
  }
  .page-gallery .gallery-filter-actions .btn {
    flex: 1 1 150px !important;
  }
}

@media (max-width: 620px) {
  .page-gallery .gallery-album-section > .container {
    padding-inline: 14px !important;
  }
  .page-gallery .gallery-filter-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 11px !important;
    padding: 15px !important;
  }
  .page-gallery .gallery-filter-bar .gallery-album-field,
  .page-gallery .gallery-filter-actions {
    grid-column: 1 / -1 !important;
  }
  .page-gallery .gallery-filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .page-gallery .gallery-filter-actions .btn:only-child {
    grid-column: 1 / -1 !important;
  }
  .page-gallery .gallery-filter-bar label {
    font-size: .72rem !important;
  }
  .page-gallery .gallery-filter-bar select,
  .page-gallery .gallery-filter-actions .btn {
    min-height: 42px !important;
    font-size: .82rem !important;
  }

  .page-gallery .gallery-selected-tour-summary {
    padding: 15px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 11px !important;
  }
  .page-gallery .gallery-selected-tour-summary .gallery-back-button {
    width: 100% !important;
    font-size: .70rem !important;
    padding: 8px 10px !important;
  }
  .page-gallery .gallery-selected-tour-summary strong {
    font-size: 1rem !important;
  }
  .page-gallery .gallery-selected-tour-summary small {
    font-size: .75rem !important;
  }
}

@media (max-width: 390px) {
  .page-gallery .gallery-filter-bar {
    grid-template-columns: 1fr !important;
  }
  .page-gallery .gallery-filter-bar .gallery-album-field,
  .page-gallery .gallery-filter-actions {
    grid-column: auto !important;
  }
  .page-gallery .gallery-filter-actions {
    grid-template-columns: 1fr !important;
  }
  .page-gallery .gallery-filter-actions .btn:only-child {
    grid-column: auto !important;
  }
}
