/* #########################################################
   PAGE: Photo + Video gallery  —  html.pg-gallery
   ######################################################### */
/* =========================================================
   Travel Point – Photo + Video gallery
   Loaded after common.css and inner.css; reuses tokens, header, phero, shead, xcta.
   ========================================================= */
:where(.pg-gallery) [hidden]{ display: none !important; }

/* ---------- Hero ---------- */
:where(.pg-gallery) .phero--gallery .phero__media img{ object-position: 50% 40%; }
:where(.pg-gallery) .phero--video .phero__media img{ object-position: 50% 45%; }

:where(.pg-gallery) .gtool{
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.4vw, 24px);
  background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(18, 48, 46, .12);
  padding: clamp(8px, .7vw, 12px);
}
:where(.pg-gallery) .gswitch{ flex: none; display: flex; background: #f3f6f6; border-radius: 12px; padding: 4px; }
:where(.pg-gallery) .gswitch__btn{
  display: inline-flex; align-items: center; gap: 9px; padding: clamp(10px, .8vw, 13px) clamp(16px, 1.6vw, 28px); border-radius: 9px;
  font-size: clamp(13px, 1vw, 16px); font-weight: 600; color: #3a4848;
}
:where(.pg-gallery) .gswitch__btn i{ color: var(--teal-700); font-size: 1.1em; }
:where(.pg-gallery) .gswitch__btn:hover{ color: var(--teal-700); }
:where(.pg-gallery) .gswitch__btn.is-active{ background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px rgba(8, 64, 63, .28); }
:where(.pg-gallery) .gswitch__btn.is-active i{ color: var(--gold-light); }

:where(.pg-gallery) .gstats{ display: flex; align-items: center; padding-right: clamp(6px, 1vw, 18px); }
:where(.pg-gallery) .gstats li{ display: flex; align-items: center; gap: 8px; font-size: clamp(12.5px, .95vw, 15px); color: #4e5a5a; padding: 0 clamp(14px, 1.6vw, 30px); border-left: 1px solid var(--line); white-space: nowrap; }
:where(.pg-gallery) .gstats li:first-child{ border-left: 0; }
:where(.pg-gallery) .gstats i{ color: var(--gold); font-size: 1.15em; }
:where(.pg-gallery) .gstats b{ font-family: var(--serif); font-size: 1.45em; font-weight: 700; color: var(--heading); line-height: 1; }

/* Filter chips (video page) */
:where(.pg-gallery) .gchips{ display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; justify-content: flex-end; }
:where(.pg-gallery) .gchips::-webkit-scrollbar{ display: none; }
:where(.pg-gallery) .gchip{
  flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e7e7; background: #fff; cursor: pointer;
  font-family: var(--sans); font-size: clamp(12.5px, .9vw, 15px); font-weight: 500; color: #1d2525;
  padding: clamp(9px, .7vw, 12px) clamp(11px, .9vw, 16px); border-radius: 999px; transition: all .25s;
}
:where(.pg-gallery) .gchip i{ color: var(--teal-700); transition: color .25s; }
:where(.pg-gallery) .gchip em{ font-style: normal; font-size: .8em; background: #f1f4f4; color: #445; border-radius: 999px; padding: 2px 8px; }
:where(.pg-gallery) .gchip:hover{ border-color: var(--teal-700); color: var(--teal-700); }
:where(.pg-gallery) .gchip.is-active{ background: var(--teal-700); border-color: var(--teal-700); color: #fff; box-shadow: 0 6px 16px rgba(8, 64, 63, .25); }
:where(.pg-gallery) .gchip.is-active i{ color: var(--gold-light); }
:where(.pg-gallery) .gchip.is-active em{ background: rgba(255, 255, 255, .18); color: #fff; }

/* =========================================================
   PHOTO – ALBUM CARDS
   ========================================================= */
:where(.pg-gallery) .galbums{ padding: clamp(22px, 2.4vw, 44px) 0 clamp(6px, .8vw, 14px); background: #fff; }
:where(.pg-gallery) .galbums__row{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 22px); }
:where(.pg-gallery) .galbum{
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; font-family: var(--sans);
  background: #fff; border: 1px solid #efebe3; border-radius: 16px; padding: clamp(8px, .7vw, 12px); color: var(--text);
  box-shadow: 0 4px 18px rgba(18, 48, 46, .06); transition: transform .3s, box-shadow .3s, border-color .3s;
}
:where(.pg-gallery) .galbum:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18, 48, 46, .13); }
:where(.pg-gallery) .galbum.is-active{ border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 16px 34px rgba(211, 162, 74, .25); }

/* three stacked covers that fan out on hover */
:where(.pg-gallery) .galbum__stack{ position: relative; display: block; aspect-ratio: 1.25; margin: 6px 6px 0; }
:where(.pg-gallery) .galbum__stack img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  transform: rotate(calc((var(--i) * -4deg) + 0deg)) translateY(calc(var(--i) * -2px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
:where(.pg-gallery) .galbum__stack img:nth-last-child(1){ transform: none; }
:where(.pg-gallery) .galbum:hover .galbum__stack img:nth-last-child(2){ transform: rotate(-7deg) translate(-8px, -4px); }
:where(.pg-gallery) .galbum:hover .galbum__stack img:nth-last-child(3){ transform: rotate(7deg) translate(8px, -4px); }
:where(.pg-gallery) .galbum:hover .galbum__stack img:nth-last-child(1){ transform: scale(1.02); }

:where(.pg-gallery) .galbum__body{ display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: clamp(10px, 1vw, 16px) 4px 2px; }
:where(.pg-gallery) .galbum__ic{
  grid-row: span 2; width: clamp(32px, 2.4vw, 40px); height: clamp(32px, 2.4vw, 40px); border-radius: 10px; display: grid; place-items: center;
  background: #eef4f3; color: var(--teal-700); font-size: clamp(14px, 1vw, 17px); transition: background .3s, color .3s;
}
:where(.pg-gallery) .galbum.is-active .galbum__ic{ background: linear-gradient(180deg, var(--gold-light), var(--gold-mid)); color: #1b2a2a; }
:where(.pg-gallery) .galbum__name{ font-weight: 600; font-size: clamp(13px, .98vw, 16px); color: var(--heading); line-height: 1.25; }
:where(.pg-gallery) .galbum__count{ font-size: clamp(11.5px, .82vw, 13.5px); color: #7a8585; }

/* =========================================================
   PHOTO – GRID
   ========================================================= */
:where(.pg-gallery) .gphotos{ padding: clamp(26px, 2.6vw, 48px) 0 clamp(36px, 3.6vw, 70px); background: #fff; }
:where(.pg-gallery) .ghead{ display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; margin-bottom: clamp(18px, 1.8vw, 32px); }
:where(.pg-gallery) .ghead .section-title{ margin-top: 4px; }
:where(.pg-gallery) .ghead__text{ font-size: clamp(13px, 1.00vw, 16.2px); color: var(--muted); margin-top: 6px; max-width: 46em; }
:where(.pg-gallery) .ghead__tools{ display: flex; align-items: center; gap: 16px; }
:where(.pg-gallery) .ghead__count{ font-size: clamp(12.5px, .92vw, 15px); color: var(--muted); }
:where(.pg-gallery) .ghead__count b{ color: var(--heading); }
:where(.pg-gallery) .gview{ display: flex; background: #f3f6f6; border-radius: 10px; padding: 3px; }
:where(.pg-gallery) .gview__btn{ width: 40px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6b7878; cursor: pointer; font-size: 15px; transition: all .25s; }
:where(.pg-gallery) .gview__btn:hover{ color: var(--teal-700); }
:where(.pg-gallery) .gview__btn.is-active{ background: #fff; color: var(--teal-700); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }

/* Masonry (CSS columns) */
:where(.pg-gallery) .ggrid{ columns: 4 260px; column-gap: clamp(10px, 1.1vw, 20px); }
:where(.pg-gallery) .gtile{
  break-inside: avoid; margin: 0 0 clamp(10px, 1.1vw, 20px); border-radius: 14px; overflow: hidden; background: #f2efe8;
  box-shadow: 0 4px 16px rgba(18, 48, 46, .08); animation: g-rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms);
}
:where(.pg-gallery) .gtile__btn{ position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; font-family: var(--sans); text-align: left; }
:where(.pg-gallery) .gtile img{ width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s; }
:where(.pg-gallery) .gtile--tall img{ aspect-ratio: .62; object-fit: cover; object-position: top; }
:where(.pg-gallery) .gtile__shade{ position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 46, 48, 0) 40%, rgba(1, 46, 48, .88) 100%); opacity: 0; transition: opacity .4s; }
:where(.pg-gallery) .gtile__zoom{
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--teal-700); font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1.3);
}
:where(.pg-gallery) .gtile__cap{
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(12px, 1.1vw, 18px); color: #fff;
  font-weight: 500; font-size: clamp(13px, .98vw, 15.5px); line-height: 1.35;
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s;
}
:where(.pg-gallery) .gtile__cap small{ display: flex; align-items: center; gap: 6px; font-size: .78em; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); margin-bottom: 4px; }
:where(.pg-gallery) .gtile__btn:hover img, :where(.pg-gallery) .gtile__btn:focus-visible img{ transform: scale(1.07); }
:where(.pg-gallery) .gtile__btn:hover .gtile__shade, :where(.pg-gallery) .gtile__btn:focus-visible .gtile__shade,
:where(.pg-gallery) .gtile__btn:hover .gtile__cap, :where(.pg-gallery) .gtile__btn:focus-visible .gtile__cap,
:where(.pg-gallery) .gtile__btn:hover .gtile__zoom, :where(.pg-gallery) .gtile__btn:focus-visible .gtile__zoom{ opacity: 1; transform: none; }
:where(.pg-gallery) .gtile__btn:focus-visible{ outline: 3px solid var(--gold); outline-offset: -3px; }

/* Uniform grid */
:where(.pg-gallery) .ggrid--uniform{ columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(10px, 1.1vw, 20px); }
:where(.pg-gallery) .ggrid--uniform .gtile{ margin: 0; }
:where(.pg-gallery) .ggrid--uniform .gtile img{ aspect-ratio: 1.25; height: 100%; object-fit: cover; object-position: center; }

:where(.pg-gallery) .gmore{ display: flex; justify-content: center; margin-top: clamp(20px, 2vw, 36px); }
:where(.pg-gallery) .gmore .btn{ border-radius: 999px; }


/* ---------- Video teaser band ---------- */
:where(.pg-gallery) .gteaser{ position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #0b3f3e; }
:where(.pg-gallery) .gteaser__bg{ position: absolute; inset: 0; z-index: -1; }
:where(.pg-gallery) .gteaser__bg img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
:where(.pg-gallery) .gteaser__bg::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 46, 48, .95) 0%, rgba(1, 46, 48, .82) 45%, rgba(1, 46, 48, .55) 100%); }
:where(.pg-gallery) .gteaser__inner{ display: flex; align-items: center; gap: clamp(20px, 2.6vw, 50px); padding-block: clamp(34px, 4vw, 76px); }
:where(.pg-gallery) .gteaser__play{
  position: relative; flex: none; width: clamp(70px, 6.4vw, 110px); height: clamp(70px, 6.4vw, 110px); border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-mid)); color: #1b2a2a; font-size: clamp(22px, 1.60vw, 26.8px); padding-left: 5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
:where(.pg-gallery) .gteaser__play::before, :where(.pg-gallery) .gteaser__play::after{ content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-mid); animation: v-ring 2.4s ease-out infinite; }
:where(.pg-gallery) .gteaser__play::after{ animation-delay: 1.2s; }
:where(.pg-gallery) .gteaser__play:hover{ transform: scale(1.06); }
:where(.pg-gallery) .gteaser__content{ flex: 1; }
:where(.pg-gallery) .gteaser__content h2{ font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.96vw, 34px); line-height: 1.2; margin: 6px 0 8px; }
:where(.pg-gallery) .gteaser__content p{ font-size: clamp(13px, 1.10vw, 16.9px); color: #dfe9e8; max-width: 40em; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
:where(.pg-gallery) .lbox{ position: fixed; inset: 0; z-index: 400; background: #041414; color: #fff; animation: qm-fade .3s ease; }
:where(.pg-gallery) .lbox::before{ content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 140px; opacity: .03; pointer-events: none; }
:where(.pg-gallery) .lbox__inner{ position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; }
:where(.pg-gallery) .lbox__bar{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(14px, 2vw, 30px); }
:where(.pg-gallery) .lbox__count{ font-size: 14px; color: #aebfbe; letter-spacing: .06em; }
:where(.pg-gallery) .lbox__count b{ color: var(--gold-light); font-size: 1.2em; }
:where(.pg-gallery) .lbox__actions{ display: flex; gap: 8px; }
:where(.pg-gallery) .lbox__act{
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: #fff; display: grid; place-items: center; font-size: 15px; cursor: pointer; transition: background .25s, color .25s, transform .25s;
}
:where(.pg-gallery) .lbox__act:hover{ background: var(--gold-mid); border-color: var(--gold-mid); color: #1b2a2a; }
:where(.pg-gallery) .lbox__act--close:hover{ transform: rotate(90deg); }
:where(.pg-gallery) .lbox__act .fa-whatsapp{ font-size: 18px; }

:where(.pg-gallery) .lbox__stage{ position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(56px, 6vw, 110px); overflow: hidden; }
:where(.pg-gallery) .lbox__fig{ position: relative; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
:where(.pg-gallery) .lbox__fig img{ max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; }
:where(.pg-gallery) .lbox__fig img.is-in{ animation: lb-in .45s cubic-bezier(.2, .8, .2, 1) forwards; }
:where(.pg-gallery) .lbox__fig img.is-in.from-left{ --x: -40px; }
:where(.pg-gallery) .lbox__fig img.is-in.from-right{ --x: 40px; }
:where(.pg-gallery) .lbox__spin{ position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--gold-mid); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
:where(.pg-gallery) .lbox.is-loading .lbox__spin{ opacity: 1; }

:where(.pg-gallery) .lbox__nav{
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: clamp(44px, 3.6vw, 60px); height: clamp(44px, 3.6vw, 60px); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: clamp(15px, 1.15vw, 17.8px); cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
:where(.pg-gallery) .lbox__nav:hover{ background: var(--gold-mid); border-color: var(--gold-mid); color: #1b2a2a; transform: translateY(-50%) scale(1.06); }
:where(.pg-gallery) .lbox__nav--prev{ left: clamp(8px, 1.6vw, 30px); }
:where(.pg-gallery) .lbox__nav--next{ right: clamp(8px, 1.6vw, 30px); }
:where(.pg-gallery) .lbox__progress{ position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transform-origin: left; transform: scaleX(0); }
:where(.pg-gallery) .lbox.is-playing .lbox__progress{ animation: lb-progress 4s linear infinite; }

:where(.pg-gallery) .lbox__cap{ text-align: center; padding: 14px 20px 8px; }
:where(.pg-gallery) .lbox__cap small{ display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-light); }
:where(.pg-gallery) .lbox__cap p{ font-family: var(--serif); font-size: clamp(17px, 1.29vw, 19.6px); margin-top: 4px; }
:where(.pg-gallery) .lbox__thumbs{ position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(14px, 2vw, 30px) 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
:where(.pg-gallery) .lbox__thumbs::before, :where(.pg-gallery) .lbox__thumbs::after{ content: ""; flex: 1 0 0; }
:where(.pg-gallery) .lbox__thumb{ flex: none; width: 74px; height: 52px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #142424; opacity: .45; transition: opacity .25s, border-color .25s, transform .25s; }
:where(.pg-gallery) .lbox__thumb img{ width: 100%; height: 100%; object-fit: cover; }
:where(.pg-gallery) .lbox__thumb:hover{ opacity: .85; }
:where(.pg-gallery) .lbox__thumb.is-active{ opacity: 1; border-color: var(--gold-mid); transform: translateY(-3px); }

/* =========================================================
   VIDEO – FEATURED + PLAYLIST
   ========================================================= */
:where(.pg-gallery) .vfeat{ padding: clamp(24px, 2.6vw, 48px) 0 clamp(30px, 3vw, 56px); background: #fff; }
:where(.pg-gallery) .vfeat__grid{ display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 29vw, 520px); gap: clamp(16px, 2vw, 36px); align-items: start; }

:where(.pg-gallery) .vplayer{ position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #021f20; box-shadow: 0 24px 60px rgba(1, 46, 48, .28); }
:where(.pg-gallery) .vplayer iframe, :where(.pg-gallery) .vplayer video, :where(.pg-gallery) .vbox__frame iframe, :where(.pg-gallery) .vbox__frame video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
:where(.pg-gallery) .vcover{ position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: none; font-family: var(--sans); }
:where(.pg-gallery) .vcover img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
:where(.pg-gallery) .vcover:hover img{ transform: scale(1.05); }
:where(.pg-gallery) .vcover__shade{ position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(1, 46, 48, .1) 0%, rgba(1, 46, 48, .5) 75%); }
:where(.pg-gallery) .vcover__hint{
  position: absolute; left: clamp(14px, 1.6vw, 26px); bottom: clamp(14px, 1.6vw, 26px); display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(1, 30, 30, .55); color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px);
}
:where(.pg-gallery) .vcover__hint i{ color: var(--gold-light); }

:where(.pg-gallery) .vplay{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 6vw, 100px); height: clamp(64px, 6vw, 100px); border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-light), var(--gold-mid)); color: #1b2a2a;
  font-size: clamp(20px, 1.53vw, 25.4px); padding-left: 5px; box-shadow: 0 14px 36px rgba(0, 0, 0, .35); transition: transform .35s cubic-bezier(.2, .8, .2, 1.4);
}
:where(.pg-gallery) .vplay::before, :where(.pg-gallery) .vplay::after{ content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(251, 227, 162, .9); animation: v-ring 2.4s ease-out infinite; }
:where(.pg-gallery) .vplay::after{ animation-delay: 1.2s; }
:where(.pg-gallery) .vcover:hover .vplay{ transform: translate(-50%, -50%) scale(1.1); }
:where(.pg-gallery) .vplay--sm{ width: 54px; height: 54px; font-size: 17px; padding-left: 4px; }
:where(.pg-gallery) .vplay--sm::before, :where(.pg-gallery) .vplay--sm::after{ display: none; }

:where(.pg-gallery) .vfeat__info{ padding: clamp(14px, 1.4vw, 24px) 4px 0; }
:where(.pg-gallery) .vfeat__info h2{ font-family: var(--serif); font-weight: 700; color: var(--heading); font-size: clamp(22px, 1.60vw, 28.2px); line-height: 1.2; margin: 10px 0 6px; }
:where(.pg-gallery) .vfeat__info p{ font-size: clamp(13px, 1.05vw, 16.4px); color: var(--muted); max-width: 48em; }
:where(.pg-gallery) .vbadge{
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: var(--teal-700); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1;
}
:where(.pg-gallery) .vbadge i{ color: var(--gold-light); }

/* "coming soon" state */
:where(.pg-gallery) .vsoon{ position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
:where(.pg-gallery) .vsoon img{ position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(14px) brightness(.45) saturate(1.1); }
:where(.pg-gallery) .vsoon__msg{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; animation: qm-pop .4s ease; }
:where(.pg-gallery) .vsoon__msg > i{ font-size: clamp(28px, 2.6vw, 44px); color: var(--gold-light); margin-bottom: 4px; }
:where(.pg-gallery) .vsoon__msg strong{ font-family: var(--serif); font-size: clamp(20px, 1.60vw, 25.4px); }
:where(.pg-gallery) .vsoon__msg span{ font-size: clamp(12.5px, 1vw, 15.5px); color: #dfe9e8; max-width: 30em; margin-bottom: 8px; }

/* Playlist */
:where(.pg-gallery) .vlist{ background: #fff; border: 1px solid #efebe3; border-radius: 18px; box-shadow: 0 10px 30px rgba(18, 48, 46, .08); overflow: hidden; display: flex; flex-direction: column; }
:where(.pg-gallery) .vlist__head{ display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, #0d4c49, #023c3c); color: #fff; }
:where(.pg-gallery) .vlist__head h3{ font-family: var(--serif); font-size: clamp(17px, 1.20vw, 18.2px); color: var(--gold-light); display: flex; align-items: center; gap: 10px; }
:where(.pg-gallery) .vlist__head h3 i{ font-size: .8em; }
:where(.pg-gallery) .vlist__head span{ font-size: 13px; color: #cfe0de; }
:where(.pg-gallery) .vlist__items{ list-style: none; max-height: clamp(360px, 31vw, 560px); overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: #cfd9d8 transparent; }
:where(.pg-gallery) .vlist__items button{
  width: 100%; display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; font-family: var(--sans); text-align: left; transition: background .25s;
}
:where(.pg-gallery) .vlist__items button:hover{ background: #f5f8f8; }
:where(.pg-gallery) .vlist__items li.is-active button{ background: #fbf6ea; box-shadow: inset 3px 0 0 var(--gold); }
:where(.pg-gallery) .vlist__num{ font-size: 12.5px; font-weight: 600; color: #9aa6a6; text-align: center; }
:where(.pg-gallery) .vlist__items li.is-active .vlist__num{ color: var(--gold-2); }
:where(.pg-gallery) .vlist__thumb{ position: relative; width: clamp(96px, 7.6vw, 130px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #e7ecec; }
:where(.pg-gallery) .vlist__thumb img{ width: 100%; height: 100%; object-fit: cover; }
:where(.pg-gallery) .vlist__thumb i{ position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(1, 46, 48, .35); opacity: 0; transition: opacity .25s; }
:where(.pg-gallery) .vlist__items button:hover .vlist__thumb i, :where(.pg-gallery) .vlist__items li.is-active .vlist__thumb i{ opacity: 1; }
:where(.pg-gallery) .vlist__txt b{ display: block; font-size: clamp(12.5px, .92vw, 14.5px); font-weight: 600; color: var(--heading); line-height: 1.35; }
:where(.pg-gallery) .vlist__txt small{ display: block; font-size: 12px; color: #7a8585; margin-top: 3px; }

/* =========================================================
   VIDEO – GRID
   ========================================================= */
:where(.pg-gallery) .vall{ position: relative; background: #fbf7f0; padding: clamp(30px, 3.2vw, 60px) 0 clamp(36px, 3.6vw, 70px); overflow: hidden; }
:where(.pg-gallery) .vall::before{ content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px; opacity: .07; pointer-events: none; }
:where(.pg-gallery) .vgrid{ position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 1.4vw, 26px); }
:where(.pg-gallery) .vcard{
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #f0ece4;
  box-shadow: 0 6px 24px rgba(18, 48, 46, .08); transition: transform .3s, box-shadow .3s;
  animation: g-rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms);
}
:where(.pg-gallery) .vcard:hover{ transform: translateY(-6px); box-shadow: 0 20px 44px rgba(18, 48, 46, .15); }
:where(.pg-gallery) .vcard__media{ position: relative; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: #e7ecec; }
:where(.pg-gallery) .vcard__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
:where(.pg-gallery) .vcard__media::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1, 46, 48, .55), rgba(1, 46, 48, .05) 60%); transition: background .4s; }
:where(.pg-gallery) .vcard:hover .vcard__media img{ transform: scale(1.07); }
:where(.pg-gallery) .vcard:hover .vplay{ transform: translate(-50%, -50%) scale(1.12); }
:where(.pg-gallery) .vcard .vplay{ z-index: 1; }
:where(.pg-gallery) .vcard__soon{ position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(1, 30, 30, .75); color: var(--gold-light); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(4px); }
:where(.pg-gallery) .vcard__body{ padding: clamp(14px, 1.3vw, 22px); }
:where(.pg-gallery) .vcard__cat{ display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); }
:where(.pg-gallery) .vcard h3{ font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 1.22vw, 18.7px); line-height: 1.25; margin: 6px 0 6px; }
:where(.pg-gallery) .vcard h3 button{ border: 0; background: none; padding: 0; font: inherit; color: var(--heading); cursor: pointer; text-align: left; transition: color .25s; }
:where(.pg-gallery) .vcard h3 button:hover{ color: var(--gold-2); }
:where(.pg-gallery) .vcard p{ font-size: clamp(13px, .98vw, 15px); color: var(--muted); line-height: 1.55; }

/* ---------- Subscribe band ---------- */
:where(.pg-gallery) .vsub{ background: #fff; padding: clamp(30px, 3vw, 56px) 0; }
:where(.pg-gallery) .vsub__inner{
  display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); flex-wrap: wrap;
  background: linear-gradient(135deg, #fff8ea 0%, #fdf1d8 100%); border: 1px solid #f1e2bf; border-radius: 22px;
  padding: clamp(20px, 2.4vw, 42px) clamp(20px, 2.8vw, 52px);
  margin-inline: var(--gutter); width: auto;
}
:where(.pg-gallery) .vsub__ic{ flex: none; width: clamp(60px, 5vw, 84px); height: clamp(60px, 5vw, 84px); border-radius: 20px; display: grid; place-items: center; background: #ff0000; color: #fff; font-size: clamp(28px, 2.4vw, 40px); box-shadow: 0 12px 26px rgba(255, 0, 0, .28); transform: rotate(-6deg); }
:where(.pg-gallery) .vsub__content{ flex: 1; min-width: 240px; }
:where(.pg-gallery) .vsub__content h2{ font-family: var(--serif); font-weight: 700; color: var(--heading); font-size: clamp(21px, 1.60vw, 26.8px); }
:where(.pg-gallery) .vsub__content p{ font-size: clamp(13px, 1.02vw, 16.2px); color: var(--muted); margin-top: 4px; }
:where(.pg-gallery) .vsub__btns{ display: flex; gap: 12px; flex-wrap: wrap; }
:where(.pg-gallery) .vsub__yt{ background: #ff0000; color: #fff; border-color: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, .25); }
:where(.pg-gallery) .vsub__yt:hover{ background: #d90000; transform: translateY(-1px); }

/* ---------- Video popup ---------- */
:where(.pg-gallery) .vbox{ position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: clamp(10px, 3vw, 50px); }
:where(.pg-gallery) .vbox__backdrop{ position: absolute; inset: 0; background: rgba(2, 20, 20, .9); backdrop-filter: blur(4px); animation: qm-fade .25s ease; }
:where(.pg-gallery) .vbox__dialog{ position: relative; width: min(1100px, 100%); animation: qm-pop .35s ease; }
:where(.pg-gallery) .vbox__frame{ position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 220px); margin-inline: auto; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
:where(.pg-gallery) .vbox__info{ color: #fff; padding: 16px 4px 0; }
:where(.pg-gallery) .vbox__info h3{ font-family: var(--serif); font-size: clamp(18px, 1.39vw, 22.5px); margin: 8px 0 4px; }
:where(.pg-gallery) .vbox__info p{ font-size: 14px; color: #c6d6d5; }
:where(.pg-gallery) .vbox__close{
  position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s;
}
:where(.pg-gallery) .vbox__close:hover{ background: var(--gold-mid); color: #1b2a2a; transform: rotate(90deg); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) {
  :where(.pg-gallery) .galbums__row{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :where(.pg-gallery) .vfeat__grid{ grid-template-columns: 1fr; }
  :where(.pg-gallery) .vlist__items{ max-height: 420px; }
  :where(.pg-gallery) .gstats li:last-child{ display: none; }
}
@media (max-width: 860px) {
  :where(.pg-gallery) .phero--gallery .phero__media{ width: 100%; opacity: .22; }
  :where(.pg-gallery) .gtool{ flex-direction: column; align-items: stretch; }
  :where(.pg-gallery) .gswitch{ align-self: flex-start; }
  :where(.pg-gallery) .gstats{ padding: 4px 0 2px; justify-content: space-between; }
  :where(.pg-gallery) .gstats li{ padding: 0 10px; }
  :where(.pg-gallery) .gstats li:first-child{ padding-left: 4px; }
  :where(.pg-gallery) .gchips{ justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  :where(.pg-gallery) .galbums__row{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  :where(.pg-gallery) .galbums__row::-webkit-scrollbar{ display: none; }
  :where(.pg-gallery) .galbum{ flex: 0 0 168px; scroll-snap-align: start; }
  :where(.pg-gallery) .gteaser__inner{ flex-wrap: wrap; }
  :where(.pg-gallery) .gteaser__content{ flex-basis: calc(100% - 120px); }
}
@media (max-width: 640px) {
  :where(.pg-gallery) .gswitch{ align-self: stretch; }
  :where(.pg-gallery) .gswitch__btn{ flex: 1; justify-content: center; }
  :where(.pg-gallery) .ggrid{ columns: 2; }
  :where(.pg-gallery) .gtile{ border-radius: 10px; }
  :where(.pg-gallery) .gtile__cap, :where(.pg-gallery) .gtile__zoom{ display: none; }
  :where(.pg-gallery) .ggrid--uniform{ grid-template-columns: 1fr 1fr; }
  :where(.pg-gallery) .ghead__tools{ width: 100%; justify-content: space-between; }
  :where(.pg-gallery) .lbox__stage{ padding: 0 8px; }
  :where(.pg-gallery) .lbox__nav{ top: auto; bottom: 10px; transform: none; width: 42px; height: 42px; }
  :where(.pg-gallery) .lbox__nav:hover{ transform: none; }
  :where(.pg-gallery) .lbox__fig{ padding-bottom: 60px; }
  :where(.pg-gallery) .lbox__act{ width: 38px; height: 38px; }
  :where(.pg-gallery) .lbox__act#lbFull{ display: none; }
  :where(.pg-gallery) .lbox__thumb{ width: 58px; height: 42px; }
  :where(.pg-gallery) .vbox__close{ top: -48px; }
  :where(.pg-gallery) .vsub__btns, :where(.pg-gallery) .vsub__btns .btn{ width: 100%; }
  :where(.pg-gallery) .gteaser__content{ flex-basis: 100%; }
  :where(.pg-gallery) .gteaser__inner .btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.pg-gallery) .gtile, :where(.pg-gallery) .vcard, :where(.pg-gallery) .lbox__fig img.is-in{ animation: none; opacity: 1; }
  :where(.pg-gallery) .vplay::before, :where(.pg-gallery) .vplay::after, :where(.pg-gallery) .gteaser__play::before, :where(.pg-gallery) .gteaser__play::after{ animation: none; display: none; }
}
