/* ALTAHANY_SLIDER_STABILITY_V10_83_3 */

/* Hero: reserve one stable box before images/JS load. */
#heroSlider.hero-slider{
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  height:clamp(430px,68svh,760px) !important;
  min-height:430px !important;
  max-height:760px !important;
  overflow:hidden !important;
  contain:layout paint style;
  isolation:isolate;
  background:#15120f;
}
#heroSlider .slide{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  flex:0 0 100% !important;
  margin:0 !important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(0,0,0) scale(1) !important;
  transition:opacity .5s ease,visibility .5s ease !important;
  overflow:hidden;
}
#heroSlider .slide.active{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  z-index:2;
}
#heroSlider .slide-media,
#heroSlider .slide-media-video{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  min-height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  transform:none !important;
}
#heroSlider .slide-overlay{position:absolute!important;inset:0!important;z-index:1}
#heroSlider .slide-content{position:relative!important;z-index:2}
#heroSlider .slider-arrow,
#heroSlider .slider-dots,
#heroSlider .category-tabs-wrapper{z-index:5}

/* Album Swiper: every card has identical geometry before Swiper initializes. */
.ath-album-browser{overflow:hidden}
.ath-album-swiper{
  width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.ath-album-swiper .swiper-wrapper{
  align-items:stretch !important;
  box-sizing:border-box !important;
}
.ath-album-swiper .swiper-slide{
  height:auto !important;
  min-width:0 !important;
  flex-shrink:0 !important;
  box-sizing:border-box !important;
}
.ath-album-choice{
  display:grid !important;
  grid-template-rows:auto 1fr;
  height:100% !important;
  min-height:100% !important;
  overflow:hidden;
}
.ath-album-choice-media{
  display:block !important;
  width:100% !important;
  aspect-ratio:4/3 !important;
  overflow:hidden !important;
  background:#eee8df;
}
.ath-album-choice-media img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  max-width:none !important;
  transform:none;
}
.ath-album-choice-copy{min-width:0}

/* Main album cover remains stable for portrait, square and landscape images. */
.ath-selected-album .ath-album-cover{
  position:relative;
  min-height:0 !important;
  aspect-ratio:16/10 !important;
}
.ath-selected-album .ath-cover-button,
.ath-selected-album .ath-cover-button img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
}
.ath-selected-album .ath-cover-button img{
  object-fit:contain !important;
  object-position:center center !important;
  background:#171513;
}

/* Grid photos: no dimension jump while lazy images decode. */
.ath-photo-card{
  contain:layout paint style;
  background:#eee8df;
}
.ath-photo-open,
.ath-photo-open img{
  width:100% !important;
  height:100% !important;
}
.ath-photo-open img{
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  max-width:none !important;
}

/* Fullscreen viewer with zoom. */
.ath-v10833-viewer[hidden]{display:none!important}
.ath-v10833-viewer{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  grid-template-rows:auto 1fr auto;
  background:rgba(8,8,8,.97);
  color:#fff;
  touch-action:none;
  overscroll-behavior:contain;
}
.ath-v10833-viewer-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left));
}
.ath-v10833-viewer-actions{display:flex;gap:8px}
.ath-v10833-viewer button{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.ath-v10833-stage{
  position:relative;
  min-height:0;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.ath-v10833-stage img{
  max-width:96vw;
  max-height:calc(100dvh - 130px);
  width:auto;
  height:auto;
  object-fit:contain;
  transform-origin:center center;
  user-select:none;
  -webkit-user-drag:none;
  will-change:transform;
}
.ath-v10833-prev,.ath-v10833-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
}
.ath-v10833-prev{inset-inline-start:12px}
.ath-v10833-next{inset-inline-end:12px}
.ath-v10833-caption{
  min-height:42px;
  padding:8px 16px max(8px,env(safe-area-inset-bottom));
  text-align:center;
  color:rgba(255,255,255,.9);
}
body.ath-v10833-viewer-open{overflow:hidden!important}

@media(max-width:760px){
  #heroSlider.hero-slider{
    height:clamp(430px,72svh,680px) !important;
  }
  #heroSlider .slide-content{
    width:min(100% - 28px,680px) !important;
  }
  .ath-selected-album .ath-album-cover{aspect-ratio:4/3 !important}
  .ath-v10833-prev,.ath-v10833-next{width:42px;height:42px}
}
@media(max-width:480px){
  #heroSlider.hero-slider{height:clamp(410px,68svh,610px)!important;min-height:410px!important}
}
@media(prefers-reduced-motion:reduce){
  #heroSlider .slide{transition:none!important}
}
