.wd-post-gallery .idprestige-ma-square-media{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#f5f5f5;
}

/* Only when aspect-ratio is unsupported (16:9 → padding-top = 9/16 × 100%) */
@supports not (aspect-ratio:1){
  .wd-post-gallery .idprestige-ma-square-media::before{
    content:"";
    display:block;
    padding-top:56.25%;
  }
}

.wd-post-gallery .idprestige-ma-square-media img.idprestige-ma-square-img{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover;
  object-position:center;
}

/* WoodMart single-post layout: full-width hero, override theme custom CSS */
.single-post .wd-single-post-thumb .wd-post-image{
  display:block;
  width:100%;
  max-width:100%;
}

.single-post .wd-single-post-thumb .idprestige-ma-gallery-carousel,
.single-post .wd-single-post-thumb .wd-post-gallery{
  max-width:none;
  width:100%;
}

.single-post img.idprestige-ma-square-img{
  width:100% !important;
  max-width:none !important;
}

/* Add spacing between slides */
.wd-post-gallery.wd-carousel-container .wd-carousel-wrap{
  margin-left:-6px;
  margin-right:-6px;
}
.wd-post-gallery.wd-carousel-container .wd-carousel-item{
  padding-left:6px;
  padding-right:6px;
}

/* Featured post gallery: glass nav arrows (WoodMart .wd-btn-arrow) */
.idprestige-ma-gallery-carousel.wd-carousel-container{
  position:relative;
}

.idprestige-ma-gallery-carousel .wd-carousel-inner{
  position:relative;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:12;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow{
  pointer-events:auto;
  -webkit-backdrop-filter:blur(12px) saturate(1.35);
  backdrop-filter:blur(12px) saturate(1.35);
  box-shadow:rgba(0,0,0,0.45) 0 8px 28px,rgba(255,255,255,0.12) 0 0 0 1px inset,rgba(255,255,255,0.28) 0 1px 0 inset;
  appearance:none;
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  min-height:46px !important;
  max-width:none !important;
  max-height:none !important;
  background-color:rgba(255,255,255,0.08) !important;
  cursor:pointer !important;
  z-index:50 !important;
  opacity:1 !important;
  visibility:visible !important;
  box-sizing:border-box !important;
  line-height:1 !important;
  font-size:inherit !important;
  color:#fff !important;
  clip-path:none !important;
  border-radius:999px;
  transition:transform 0.28s cubic-bezier(0.33,1,0.68,1),box-shadow 0.28s,border-color 0.28s,background 0.28s,filter 0.28s;
  border-width:1px !important;
  border-style:solid !important;
  border-color:rgba(255,255,255,0.55) !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow:hover,
.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow:focus{
  transform:translateY(-50%) scale(1.06) !important;
  border-color:rgba(255,255,255,0.85) !important;
  box-shadow:rgba(0,0,0,0.5) 0 10px 32px,rgba(255,255,255,0.18) 0 0 0 1px inset,rgba(255,255,255,0.35) 0 1px 0 inset;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow.wd-prev{
  left:12px !important;
  right:auto !important;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow.wd-next{
  right:12px !important;
  left:auto !important;
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow .wd-arrow-inner{
  background-color:transparent !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.idprestige-ma-gallery-carousel .wd-nav-arrows.wd-pos-sep .wd-btn-arrow.wd-disabled{
  opacity:0.35 !important;
  cursor:default !important;
}

/* Dash pagination below gallery */
.idprestige-ma-gallery-carousel .idprestige-ma-gallery-pagin{
  --wd-pagin-gap:8px;
  margin-top:14px;
}

.idprestige-ma-gallery-carousel .idprestige-ma-gallery-pagin .wd-nav-pagin{
  gap:var(--wd-pagin-gap);
}

.idprestige-ma-gallery-carousel .idprestige-ma-gallery-pagin .wd-nav-pagin-item span{
  display:block;
  width:28px;
  height:3px;
  border:none;
  border-radius:2px;
  background-color:rgba(0,0,0,0.18);
  transition:width 0.25s ease,background-color 0.25s ease,opacity 0.25s ease;
}

.idprestige-ma-gallery-carousel .idprestige-ma-gallery-pagin .wd-nav-pagin-item:not(.wd-active):hover span{
  background-color:rgba(0,0,0,0.35);
}

.idprestige-ma-gallery-carousel .idprestige-ma-gallery-pagin .wd-nav-pagin-item.wd-active span{
  width:40px;
  background-color:#a58d5f;
}
