/* Public photo gallery — masonry grid + lightbox */

.wax-gallery-head { padding-bottom: 24px; }

.wax-gallery-wrap { max-width: 1480px; margin: 0 auto; padding: 8px 16px 64px; }

.wax-gallery { display: flex; gap: 12px; align-items: flex-start; }
.wax-gallery__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) { .wax-gallery, .wax-gallery__col { gap: 8px; } }
.wax-gallery-plain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wax-gallery-plain img { width: 100%; display: block; }
#wax-gallery-sentinel { height: 1px; }

.wax-gallery__item { margin: 0; animation: wax-fade-in 0.5s ease both; }

.wax-gallery__item a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--wax-cream-2);
  box-shadow: var(--wax-shadow);
  cursor: zoom-in;
}
.wax-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.wax-gallery__item a:hover img,
.wax-gallery__item a:focus-visible img { transform: scale(1.05); }
.wax-gallery__item a:focus-visible { outline: 3px solid var(--wax-gold-dark); outline-offset: 2px; }

.wax-gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(22, 18, 26, 0.78), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wax-gallery__item a:hover .wax-gallery__cap,
.wax-gallery__item a:focus-visible .wax-gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .wax-gallery__cap { display: none; } }

/* Lightbox */
.wax-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 18, 26, 0.96);
  animation: wax-fade-in 0.2s ease;
}
.wax-lb[hidden] { display: none; }

.wax-lb__stage {
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 64px 16px;
}
.wax-lb__img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.25s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}
.wax-lb__img.is-loading { opacity: 0.35; }

.wax-lb__cap {
  margin-top: 14px;
  max-width: 760px;
  min-height: 1.4em;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wax-lb__btn {
  position: absolute;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wax-lb__btn:hover, .wax-lb__btn:focus-visible { background: var(--wax-gold-dark); outline: none; }
.wax-lb__close { top: 14px; right: 14px; }
.wax-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.wax-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .wax-lb__stage { padding: 56px 0 12px; }
  .wax-lb__img { border-radius: 0; }
  .wax-lb__cap { padding: 0 16px; }
  .wax-lb__prev, .wax-lb__next { top: auto; bottom: 14px; transform: none; width: 40px; height: 40px; }
  .wax-lb__prev { left: 14px; }
  .wax-lb__next { right: 14px; }
}

body.wax-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .wax-lb { animation: none; }
  .wax-gallery__item img, .wax-lb__img, .wax-gallery__cap { transition: none; }
}

/* Photos / Videos switch */
.wax-gtabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; }
.wax-gtabs button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--wax-line);
  border-radius: 999px;
  background: #fff;
  color: var(--wax-black);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.wax-gtabs button[aria-selected="true"] { background: var(--wax-gold-dark); border-color: var(--wax-gold-dark); color: #fff; }
.wax-gtabs button:focus-visible { outline: 3px solid var(--wax-gold-dark); outline-offset: 2px; }
[role="tabpanel"][hidden] { display: none; }

/* Video grid (clips are vertical, so cards are portrait) */
.wax-vgrid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1100px; }
@media (max-width: 1000px) { .wax-vgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .wax-vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.wax-vcard { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wax-vcard__poster { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--wax-black); box-shadow: var(--wax-shadow); }
.wax-vcard__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.wax-vcard:hover .wax-vcard__poster img { transform: scale(1.05); }
.wax-vcard__play {
  position: absolute; left: 50%; top: 50%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(216, 27, 110, 0.92);
  color: #fff; font-size: 1.1rem; padding-left: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.wax-vcard:hover .wax-vcard__play { transform: scale(1.1); }
.wax-vcard:focus-visible { outline: 3px solid var(--wax-gold-dark); outline-offset: 4px; border-radius: 12px; }
.wax-vcard__title { display: block; margin-top: 10px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.wax-vcard__cap { display: block; margin-top: 2px; font-size: 0.8rem; opacity: 0.7; line-height: 1.4; }

/* Video player modal */
.wax-vlb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(22, 18, 26, 0.96); animation: wax-fade-in 0.2s ease; }
.wax-vlb[hidden] { display: none; }
.wax-vlb__box { display: flex; flex-direction: column; align-items: center; max-width: 100vw; padding: 56px 16px 16px; }
.wax-vlb__video { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); background: #000; border-radius: 8px; }
.wax-vlb__bar { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; width: 100%; max-width: 520px; margin-top: 12px; color: #fff; font-family: "Poppins", sans-serif; }
.wax-vlb__info { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.wax-vlb__cap { opacity: 0.75; font-size: 0.78rem; }
.wax-vlb__q { flex: none; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff; border-radius: 999px; padding: 5px 14px; font: 600 0.75rem "Poppins", sans-serif; cursor: pointer; }
.wax-vlb__q:hover, .wax-vlb__q:focus-visible { background: var(--wax-gold-dark); border-color: var(--wax-gold-dark); outline: none; }
.wax-vlb__close { top: 14px; right: 14px; }
@media (prefers-reduced-motion: reduce) { .wax-vlb { animation: none; } .wax-vcard__poster img, .wax-vcard__play { transition: none; } }
