/* Trip Thirsty — /customer-photos: justified photo grid, filters, lightbox and the cinematic loader.
   Loaded on that page only (the package page stays light).  Designed in light colours; dark mode is the
   site-wide invert filter, with the lightbox and the cloud layers re-inverted so photos and clouds keep their look. */

/* ============================== page ============================== */
.tt-gal-intro { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.tt-gal-lead { color: #6b7280; margin: 8px 0 0; line-height: 1.7; }
.tt-gal-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.tt-gal-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #d9dfe8; border-radius: 999px;
  background: #fff; color: var(--tg-common-black, #020615); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease; }
.tt-gal-chip small { font-size: 12px; opacity: .6; }
.tt-gal-chip:hover { border-color: var(--tg-theme-primary); color: var(--tg-theme-primary); }
.tt-gal-chip.is-active { background: var(--tg-theme-primary); border-color: var(--tg-theme-primary); color: #fff; }
.tt-gal-chip.is-active:hover { color: #fff; }
.tt-gal-count { text-align: center; font-size: 13px; color: #6b7280; margin: 0 0 18px; min-height: 20px; }
.tt-gal-note { text-align: center; font-size: 12.5px; color: #6b7280; margin: 26px auto 0; max-width: 620px; }
.tt-gal-more { text-align: center; margin-top: 28px; }
.tt-gal-more[hidden] { display: none; }
.tt-gal-more a.is-loading { opacity: .6; pointer-events: none; }
.tt-gal-share { margin: 60px auto 0; max-width: 780px; padding: 28px 30px; border: 1px solid #e4e8ee; border-radius: 18px; text-align: center; }
.tt-gal-share h3 { font-size: 22px; margin-bottom: 8px; }
.tt-gal-share p { color: #6b7280; margin-bottom: 18px; }
.tt-gal-empty { text-align: center; padding: 30px 0 10px; color: #6b7280; }

/* justified rows: each tile grows in proportion to its aspect ratio (--r), so a row's photos share one height,
   and its padding-hack reserves the space before the image arrives — no layout shift. */
.tt-gal { --rh: 220px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; transition: opacity .2s ease; }
.tt-gal::after { content: ""; flex-grow: 10000; }                                /* keeps the last row from stretching */
.tt-gal.is-busy { opacity: .45; pointer-events: none; }
.tt-gal-item { position: relative; flex-basis: calc(var(--r) * var(--rh)); min-width: 0; margin: 0; overflow: hidden; border-radius: 10px; background: #e6eaf0; }
.tt-gal-item::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.tt-gal-item > a { position: absolute; inset: 0; display: block; color: #fff; outline-offset: -3px; }
.tt-gal-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.02);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tt-gal-item img.is-in { opacity: 1; transform: none; }
.tt-gal-item:hover img.is-in { transform: scale(1.04); }
.tt-gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-size: 13px; line-height: 1.35; font-weight: 500; text-align: left;
  background: linear-gradient(to top, rgba(2, 6, 21, .72), rgba(2, 6, 21, 0)); opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.tt-gal-item:hover .tt-gal-cap, .tt-gal-item > a:focus-visible .tt-gal-cap { opacity: 1; transform: none; }
@media (hover: none) { .tt-gal-cap { display: none; } }
@media (max-width: 991.98px) { .tt-gal { --rh: 170px; } }
@media (max-width: 575.98px) { .tt-gal { --rh: 118px; gap: 5px; } .tt-gal-item { border-radius: 7px; } .tt-gal-filters { gap: 6px; } .tt-gal-chip { padding: 7px 13px; font-size: 13px; } }
.tt-gal-play { z-index: 2; }
.tt-gal-tag { z-index: 2; }

/* ============================== lightbox ============================== */
html.tt-lb-lock { overflow: hidden; }
.tt-lb { position: fixed; inset: 0; z-index: 100002; display: none; flex-direction: column; background: #04070c; color: #fff; }
.tt-lb.is-open { display: flex; animation: tt-lb-in .22s ease both; }
@keyframes tt-lb-in { from { opacity: 0; } to { opacity: 1; } }
.tt-lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.tt-lb-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease; }
.tt-lb-btn:hover { background: rgba(255, 255, 255, .22); }
.tt-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tt-lb-btn[disabled] { opacity: .3; cursor: default; }
.tt-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px; touch-action: pan-y; }
.tt-lb-media { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.tt-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55); transition: opacity .28s ease, filter .4s ease; }
.tt-lb-img.is-preview { filter: blur(10px) saturate(1.05); }
.tt-lb-img.is-swap { opacity: 0; }
.tt-lb-frame { width: min(100%, 1100px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.tt-lb-spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: tt-lb-spin .8s linear infinite; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.tt-lb-spin.is-on { opacity: 1; }
@keyframes tt-lb-spin { to { transform: rotate(360deg); } }
.tt-lb-prev, .tt-lb-next { position: absolute; top: 50%; margin-top: -22px; }
.tt-lb-prev { left: 14px; } .tt-lb-next { right: 14px; }
.tt-lb-cap { padding: 12px 22px 22px; text-align: center; min-height: 70px; }
.tt-lb-title { font-size: 16px; font-weight: 500; margin: 0 0 3px; }
.tt-lb-sub { font-size: 13px; color: rgba(255, 255, 255, .62); margin: 0; }
.tt-lb-sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tt-lb-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: rgba(255, 255, 255, .16); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 767.98px) {
  .tt-lb-stage { padding: 0 8px; }
  .tt-lb-prev, .tt-lb-next { top: auto; bottom: 8px; margin: 0; background: rgba(0, 0, 0, .5); }
  .tt-lb-prev { left: 10px; } .tt-lb-next { right: 10px; }
}
/* dark mode: the page-wide invert filter would turn this near-black overlay white, so it is re-inverted (2 passes = as designed);
   photos and the YouTube frame drop their own re-invert for the same reason (their 2 passes are html + this overlay). */
html[data-theme="dark"] .tt-gal-cap { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .tt-lb { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .tt-lb img, html[data-theme="dark"] .tt-lb iframe { filter: none; }
html[data-theme="dark"] .tt-lb .tt-lb-img.is-preview { filter: blur(10px); }

@media (prefers-reduced-motion: reduce) {
  .tt-gal-item img { transition: none; transform: none; }
  .tt-lb.is-open { animation: none; }
}
