/*
Theme Name: SwapU The Studio
Theme URI: https://swaputhestudio.com
Author: Siddhant Shrestha
Author URI: https://siddhantshrestha.comnp
Description: Bespoke luxury WordPress theme for SwapU The Studio — Sacred Rituals, Matrimonial & Cultural Heritage Photography by Nandu Shrestha (Bhaktapur & Kathmandu, Nepal).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: swaputheme
*/

/* -------------------------------------------------------------
   Fullscreen Gallery Lightbox & Photographic Viewer
-------------------------------------------------------------- */
#galleryViewerModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(7, 3, 3, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#galleryViewerModal.active {
  opacity: 1;
  pointer-events: auto;
}

.viewer-topbar {
  height: 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 3, 3, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
}

@media (min-width: 640px) {
  .viewer-topbar {
    padding: 0 2.5rem;
    height: 4.75rem;
  }
}

.viewer-stage {
  position: relative;
  flex: 1 1 0%;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  overflow: hidden;
  user-select: none;
}

@media (min-width: 640px) {
  .viewer-stage {
    padding: 1.5rem 4.5rem;
  }
}

@media (min-width: 1024px) {
  .viewer-stage {
    padding: 2rem 6rem;
  }
}

.viewer-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.viewer-reticle-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(223, 168, 42, 0.7);
  pointer-events: none;
  z-index: 25;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.viewer-img-wrap:hover .viewer-reticle-corner,
.viewer-stage.is-transitioning .viewer-reticle-corner {
  opacity: 1;
  border-color: #dfa82a;
  transform: scale(1.1);
}

.viewer-reticle-tl { top: -8px; left: -8px; border-top: 2px solid; border-left: 2px solid; }
.viewer-reticle-tr { top: -8px; right: -8px; border-top: 2px solid; border-right: 2px solid; }
.viewer-reticle-bl { bottom: -8px; left: -8px; border-bottom: 2px solid; border-left: 2px solid; }
.viewer-reticle-br { bottom: -8px; right: -8px; border-bottom: 2px solid; border-right: 2px solid; }

/* Optical Camera Shutter Strobe Overlay */
.viewer-shutter-flash {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: radial-gradient(circle at center, rgba(255, 240, 200, 0.45) 0%, rgba(223, 168, 42, 0.2) 45%, transparent 75%);
  pointer-events: none;
  z-index: 24;
  opacity: 0;
  mix-blend-mode: screen;
}

.viewer-shutter-flash.flash-active {
  animation: viewerFlashPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewerFlashPulse {
  0% { opacity: 0; transform: scale(0.94); }
  25% { opacity: 0.85; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1); }
}

#viewerMainImg {
  max-height: 60vh;
  max-width: 86vw;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px) brightness(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

#viewerMainImg.plate-slide-next-out {
  opacity: 0 !important;
  transform: translate3d(-40px, 0, 0) scale(0.94) !important;
  filter: blur(8px) brightness(0.6) !important;
}

#viewerMainImg.plate-slide-next-in {
  opacity: 0 !important;
  transform: translate3d(40px, 0, 0) scale(1.05) !important;
  filter: blur(8px) brightness(1.25) !important;
  transition: none !important;
}

#viewerMainImg.plate-slide-prev-out {
  opacity: 0 !important;
  transform: translate3d(40px, 0, 0) scale(0.94) !important;
  filter: blur(8px) brightness(0.6) !important;
}

#viewerMainImg.plate-slide-prev-in {
  opacity: 0 !important;
  transform: translate3d(-40px, 0, 0) scale(1.05) !important;
  filter: blur(8px) brightness(1.25) !important;
  transition: none !important;
}

#viewerMainImg.plate-active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px) brightness(1) !important;
}

.viewer-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 9999px !important;
  background: rgba(11, 6, 6, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 50 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

.viewer-nav-btn:hover {
  background: #dfa82a !important;
  color: #0b0606 !important;
  border-color: #dfa82a !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 0 25px rgba(223, 168, 42, 0.55) !important;
}

.viewer-nav-btn.prev {
  left: 1rem !important;
}

.viewer-nav-btn.next {
  right: 1rem !important;
}

@media (min-width: 640px) {
  .viewer-nav-btn.prev {
    left: 2rem !important;
  }
  .viewer-nav-btn.next {
    right: 2rem !important;
  }
}

@media (min-width: 1024px) {
  .viewer-nav-btn.prev {
    left: 2.75rem !important;
  }
  .viewer-nav-btn.next {
    right: 2.75rem !important;
  }
}

.viewer-bottombar {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 3, 3, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
}

@media (min-width: 640px) {
  .viewer-bottombar {
    padding: 1.125rem 2.5rem 1.5rem;
  }
}

.viewer-thumb-tray {
  padding: 0.375rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

.viewer-thumb-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.4;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.viewer-thumb-btn:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

.viewer-thumb-btn.active {
  opacity: 1;
  border: 2px solid #dfa82a;
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(223, 168, 42, 0.4);
}

/* -------------------------------------------------------------
   Editorial Showcase Strips & Vertical Accordion Plates
-------------------------------------------------------------- */
.editorial-strip {
  position: relative;
  height: 600px;
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-right: 1px solid rgba(223, 168, 42, 0.2);
}

@media (min-width: 1024px) {
  .editorial-strip {
    flex: 1;
    height: 640px;
  }
  .editorial-strip:hover {
    flex: 3.5;
  }
}

.editorial-strip .strip-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-strip:hover .strip-bg {
  transform: scale(1.08);
}

.editorial-strip .strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 6, 6, 0.4) 0%, rgba(11, 6, 6, 0.65) 50%, rgba(11, 6, 6, 0.96) 100%);
  transition: all 0.5s ease;
}

.editorial-strip:hover .strip-overlay {
  background: linear-gradient(180deg, rgba(11, 6, 6, 0.2) 0%, rgba(11, 6, 6, 0.45) 40%, rgba(11, 6, 6, 0.96) 100%);
}

.editorial-strip .strip-collapsed-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: all 0.4s ease;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .editorial-strip:hover .strip-collapsed-label {
    opacity: 0;
    transform: rotate(180deg) translateY(-20px);
  }
}

.editorial-strip .strip-expanded-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .editorial-strip:hover .strip-expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.15s;
  }
}

@media (max-width: 1023px) {
  .editorial-strip {
    height: 380px;
    border-right: none;
    border-bottom: 1px solid rgba(223, 168, 42, 0.2);
  }
  .editorial-strip .strip-collapsed-label {
    display: none;
  }
  .editorial-strip .strip-expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* -------------------------------------------------------------
   Services Carousel Listing Swiper
-------------------------------------------------------------- */
.servicesSwiper {
  overflow: hidden !important;
  padding: 1rem 0 3.5rem !important;
}

.services-swiper-pagination {
  position: relative !important;
  margin-top: 2rem !important;
  text-align: center !important;
  z-index: 20 !important;
}

.services-swiper-pagination .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  display: inline-block !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  transition: all 0.4s ease !important;
}

.services-swiper-pagination .swiper-pagination-bullet-active {
  width: 36px !important;
  border-radius: 9999px !important;
  background: #dfa82a !important;
  box-shadow: 0 0 15px rgba(223, 168, 42, 0.6) !important;
}
