/* ===================================================
   Gallery Page — pages-gallery.css
   =================================================== */


/* ===================================================
   TAB BAR
   =================================================== */

/* Gallery page: header scrolls with page instead of fixed.
   Eliminates all scroll-direction JS + transition glitches.
   Tab bar sticks at top: 0 immediately since nothing is fixed above it. */
body.gallery-page {
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 0;
}

body.gallery-page #main-header {
  position: relative !important;
  inset: unset;
  width: 100%;
}

body.gallery-page #main-header .navbar.fixed-top {
  position: relative !important;
}

.gallery-tab-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 1001;
  isolation: isolate;
}

.gallery-tab-bar-wrap .container {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  /* NO overflow here — overflow-x:auto forces overflow-y:auto per spec,
     which clips the absolutely-positioned sort dropdown */
}

.gallery-tab-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: var(--surface-muted);
  border-radius: 12px;
  flex-shrink: 0;
  /* no overflow here — dropdown is position:absolute inside and must not be clipped */
}

.gallery-tab-with-menu {
  position: relative;
  flex-shrink: 0;
}

.gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  min-height: 38px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .gallery-tab-bar-wrap .container {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .gallery-tab-bar {
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }

  .gallery-tab-btn {
    padding: 0.7rem 2.5rem;
    min-height: 48px;
    font-size: 1rem;
    gap: 0.55rem;
    border-radius: 11px;
  }
}

.gallery-tab-btn[aria-selected="true"] {
  background: var(--color-blue);
  color: #fff;
  font-weight: 600;
}

.gallery-tab-btn:hover:not([aria-selected="true"]) {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

html.theme-dark .gallery-tab-btn:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.08);
}

.gallery-tab-btn:active {
  transform: scale(0.97);
}

.gallery-tab-btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.gallery-tab-icon {
  flex-shrink: 0;
}

.gallery-tab-chevron {
  flex-shrink: 0;
  margin-left: 0.1rem;
  transition: transform 0.18s ease;
}

.gallery-tab-btn[aria-expanded="true"] .gallery-tab-chevron {
  transform: rotate(180deg);
}

/* Sort dropdown */
.gallery-sort-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--header-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 0.3rem;
  min-width: 140px;
  z-index: 600;
  animation: gallery-panel-in 0.15s ease both;
}

.gallery-sort-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s ease;
  gap: 0.5rem;
}

.gallery-sort-option:hover {
  background: var(--surface-muted, rgba(15, 23, 42, 0.05));
}

.gallery-sort-option--active {
  color: var(--color-blue);
  font-weight: 600;
}

.gallery-sort-option--active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}

/* ===================================================
   TAB PANELS
   =================================================== */

.gallery-tab-panel {
  padding-top: 1rem;
}

.gallery-tab-panel:not([hidden]) {
  animation: gallery-panel-in 0.18s ease both;
}

@keyframes gallery-panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ===================================================
   THERAPIST GALLERY GRID
   =================================================== */

.gallery-grid--therapists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0.5rem;
}

@media (min-width: 576px) {
  .gallery-grid--therapists {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .gallery-grid--therapists {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (min-width: 992px) {
  .gallery-grid--therapists {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* ===================================================
   GALLERY ITEM (PhotoSwipe anchor)
   =================================================== */

.gallery-item {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  display: block;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .gallery-item {
    border-radius: 4px;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.04);
  }
}

/* ===================================================
   HEART / LIKE BUTTON (gallery-item scoped, 44px touch target)
   =================================================== */

/* Light theme: white translucent bg, red icon */
.gallery-item .image-like-btn,
.gallery-video-item .image-like-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-item .image-like-btn:hover,
.gallery-video-item .image-like-btn:hover {
  background: rgba(255, 255, 255, 0.96);
}

.gallery-item .image-like-btn:active,
.gallery-video-item .image-like-btn:active {
  transform: scale(0.88);
}

.gallery-item .image-like-btn .heart-icon,
.gallery-video-item .image-like-btn .heart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(239, 68, 68, 0.75);
  transition: color 0.15s ease;
}

.gallery-item .image-like-btn .heart-icon svg,
.gallery-video-item .image-like-btn .heart-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-item .image-like-btn .heart-icon path,
.gallery-video-item .image-like-btn .heart-icon path {
  stroke: currentColor;
  fill: none;
}

.gallery-item .image-like-btn.is-liked,
.gallery-video-item .image-like-btn.is-liked {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(239, 68, 68, 0.38);
}

.gallery-item .image-like-btn.is-liked .heart-icon,
.gallery-video-item .image-like-btn.is-liked .heart-icon {
  color: #ef4444;
}

.gallery-item .image-like-btn.is-liked .heart-icon path,
.gallery-video-item .image-like-btn.is-liked .heart-icon path {
  fill: #ef4444;
  stroke: #ef4444;
}

@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.gallery-item .image-like-btn.is-popping,
.gallery-video-item .image-like-btn.is-popping {
  animation: heart-pop 0.4s ease forwards;
}

.image-like-count {
  position: absolute;
  top: 3.15rem;
  right: 0.35rem;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1;
  display: none;
  pointer-events: none;
}

.image-like-count.is-visible {
  display: block;
}

/* Dark theme: dark bg, white icon */
html.theme-dark .gallery-item .image-like-btn,
html.theme-dark .gallery-video-item .image-like-btn {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
}

html.theme-dark .gallery-item .image-like-btn:hover,
html.theme-dark .gallery-video-item .image-like-btn:hover {
  background: rgba(0, 0, 0, 0.62);
}

html.theme-dark .gallery-item .image-like-btn .heart-icon,
html.theme-dark .gallery-video-item .image-like-btn .heart-icon {
  color: rgba(255, 255, 255, 0.85);
}

html.theme-dark .gallery-item .image-like-btn.is-liked,
html.theme-dark .gallery-video-item .image-like-btn.is-liked {
  background: rgba(244, 63, 94, 0.30);
  border-color: rgba(244, 63, 94, 0.52);
}

html.theme-dark .gallery-item .image-like-btn.is-liked .heart-icon,
html.theme-dark .gallery-video-item .image-like-btn.is-liked .heart-icon {
  color: #f43f5e;
}

html.theme-dark .gallery-item .image-like-btn.is-liked .heart-icon path,
html.theme-dark .gallery-video-item .image-like-btn.is-liked .heart-icon path {
  fill: #f43f5e;
  stroke: #f43f5e;
}

/* Online pill */

.gallery-online-pill {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-pill);
  padding: 2px 6px 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  pointer-events: none;
}

.gallery-online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .gallery-online-pill {
    font-size: 0.7rem;
    padding: 3px 8px 3px 6px;
    top: 0.5rem;
    left: 0.5rem;
  }

  .gallery-online-dot {
    width: 6px;
    height: 6px;
  }
}

html.theme-dark .gallery-online-pill {
  background: rgba(15, 26, 36, 0.7);
  color: #fff;
}

/* ===================================================
   GALLERY ITEM INFO STRIP (name · age · city · rating)
   =================================================== */

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.5rem 0.45rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  pointer-events: none;
}

.gallery-item-name {
  color: rgba(255, 255, 255, 0.97);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.gallery-item-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 768px) {
  .gallery-item-info {
    padding: 3rem 0.65rem 0.55rem;
    gap: 0.22rem;
  }
  .gallery-item-name { font-size: 0.8rem; }
  .gallery-item-meta,
  .gallery-item-rating { font-size: 0.7rem; }
}

/* Video item name strip (unchanged structure) */
.gallery-video-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem 0.5rem 0.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .gallery-video-name {
    font-size: 0.75rem;
    padding: 2rem 0.65rem 0.5rem;
  }
}

/* ===================================================
   STAGGER ENTRANCE ANIMATION
   =================================================== */

@keyframes gallery-item-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-item,
.gallery-video-item {
  animation: gallery-item-in 0.3s ease both;
  animation-delay: min(calc(var(--i, 0) * 30ms), 300ms);
}

/* ===================================================
   SKELETON LOADER
   =================================================== */

.gallery-skeleton {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-soft);
  background: linear-gradient(
    90deg,
    var(--surface-muted) 25%,
    var(--border-soft) 50%,
    var(--surface-muted) 75%
  );
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s ease infinite;
}

@media (max-width: 575.98px) {
  .gallery-skeleton {
    border-radius: 4px;
  }
}

@keyframes gallery-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================================================
   MORE PHOTOS CTA
   =================================================== */

.gallery-more-cta {
  margin-top: 2rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border-soft);
}

.gallery-more-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gallery-more-cta-text {
  flex: 1;
  min-width: 200px;
}

.gallery-more-cta-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.gallery-more-cta-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.gallery-more-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gallery-more-cta-btn {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}


/* ===================================================
   SERVICES GRID
   =================================================== */

.gallery-grid--services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .gallery-grid--services {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .gallery-grid--services {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.gallery-service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
  border: var(--surface-card-border);
  box-shadow: var(--shadow-surface-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .gallery-service-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }
}

.gallery-service-img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-muted);
}

.gallery-service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .gallery-service-card:hover .gallery-service-img-wrap img {
    transform: scale(1.04);
  }
}

.gallery-service-meta {
  padding: 0.7rem 0.75rem 0.8rem;
}

.gallery-service-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.gallery-service-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .gallery-service-name {
    font-size: 0.9rem;
  }

  .gallery-service-desc {
    font-size: 0.8rem;
  }
}

/* ===================================================
   SEO CONTENT BLOCK
   =================================================== */

.gallery-seo-block {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
}

.gallery-seo-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.gallery-seo-body p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
  max-width: 72ch;
}

.gallery-seo-body p:last-child {
  margin-bottom: 0;
}

/* ===================================================
   FAQ ACCORDION
   =================================================== */

.gallery-faq {
  padding: 2rem 0 3rem;
}

.gallery-faq-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.gallery-faq-list {
  max-width: 680px;
}

.gallery-faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.gallery-faq-item:first-child {
  border-top: 1px solid var(--border-soft);
}

.gallery-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
}

.gallery-faq-question:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.gallery-faq-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.gallery-faq-question[aria-expanded="true"] .gallery-faq-icon {
  transform: rotate(180deg);
}

.gallery-faq-answer {
  padding-bottom: 1rem;
}

.gallery-faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===================================================
   PHOTOSWIPE: BOTTOM CTA BAR
   =================================================== */

.pswp .gallery-pswp-cta-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  z-index: 100;
  pointer-events: all;
}

.gallery-pswp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.gallery-pswp-btn:active {
  transform: scale(0.95);
  opacity: 0.82;
}

.gallery-pswp-btn--profile {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.gallery-pswp-btn--profile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

@keyframes pswp-btn-shine {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(320%) skewX(-15deg); }
}

.gallery-pswp-btn--book {
  position: relative;
  overflow: hidden;
  background: var(--color-blue);
  border: 1px solid transparent;
  color: #fff;
}

.gallery-pswp-btn--book::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  animation: pswp-btn-shine 2.2s ease-in-out infinite;
  pointer-events: none;
}

.gallery-pswp-btn--book:hover {
  opacity: 0.9;
  color: #fff;
}

/* Lightbox heart — below close button, top-right of image */
.pswp .gallery-pswp-heart-wrap {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 100;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pswp .gallery-pswp-heart-wrap .image-like-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}

.pswp .gallery-pswp-heart-wrap .image-like-btn:active {
  transform: scale(0.92);
}

.pswp .gallery-pswp-heart-wrap .heart-icon svg {
  width: 20px;
  height: 20px;
}

.pswp .gallery-pswp-heart-wrap .image-like-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  display: none;
}

.pswp .gallery-pswp-heart-wrap .image-like-count.is-visible {
  display: block;
}

/* ===================================================
   VIDEO GALLERY GRID
   =================================================== */

.gallery-grid--videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0.5rem;
}

@media (min-width: 576px) {
  .gallery-grid--videos {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .gallery-grid--videos {
    gap: 10px;
  }
}

@media (min-width: 992px) {
  .gallery-grid--videos {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.gallery-video-item {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  display: block;
  width: 100%;
  padding: 0;
  border: none;
}

@media (max-width: 575.98px) {
  .gallery-video-item {
    border-radius: 4px;
  }
}

.gallery-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .gallery-video-item:hover img {
    transform: scale(1.04);
  }
}

.gallery-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  transition: background 0.15s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .gallery-video-item:hover .gallery-video-play {
    background: rgba(0, 0, 0, 0.38);
  }
}

.gallery-video-play svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.gallery-video-skeleton {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-soft);
  background: linear-gradient(
    90deg,
    var(--surface-muted) 25%,
    var(--border-soft) 50%,
    var(--surface-muted) 75%
  );
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s ease infinite;
}

@media (max-width: 575.98px) {
  .gallery-video-skeleton {
    border-radius: 4px;
  }
}

/* ===================================================
   PHOTOSWIPE: VIDEO SLIDE
   =================================================== */

.pswp-video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom));
  cursor: pointer;
}

.pswp-video-wrap video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
}

/* ===================================================
   DARK MODE
   =================================================== */

html.theme-dark .gallery-tab-bar-wrap {
  background: transparent;
}

html.theme-dark .gallery-select {
  border-color: var(--border-soft);
  background: var(--surface-card);
  color: var(--text-primary);
}

html.theme-dark .gallery-skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-muted) 25%,
    var(--border-soft) 50%,
    var(--surface-muted) 75%
  );
  background-size: 200% 100%;
}

html.theme-dark .gallery-service-card {
  background: var(--surface-card);
  border-color: var(--border-soft);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-skeleton,
  .gallery-video-skeleton {
    animation: none;
    background: var(--surface-muted);
  }

  .gallery-item,
  .gallery-video-item {
    animation: none;
  }

  .gallery-tab-panel:not([hidden]) {
    animation: none;
  }

  .gallery-item img,
  .gallery-video-item img,
  .gallery-service-img-wrap img,
  .gallery-service-card {
    transition: none;
  }
}
