/* az-cat-slider.css — unify entry page & overview nav, keep fixed-height 400 */
:root { --az-amber:#e2a23b; --az-slide-h: 400px; --az-cat-muted:#a6a6a6; }

/* Global wrap */
.az-wrap{max-width:900px;margin:2.5rem auto;padding:0 1rem;text-align:center}
.az-cat{margin:2.2rem 0 7.5rem}
.az-cat-title{margin:0 0 1.4rem;font-size:clamp(22px,2.6vw,30px);color:var(--az-cat-muted)}

/* Overview slider */
.az-cat-slider{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.az-nav{background:transparent;border:0;cursor:pointer;color:var(--az-amber);padding:0;display:flex;align-items:center;justify-content:center;justify-self:center}
.az-nav .az-ico{width:32px;height:32px}
.az-nav:hover{opacity:.9}
.az-slides{display:flex;align-items:center;justify-content:center;width:100%;height:var(--az-slide-h)}
.az-slide{display:none;width:100%;height:100%}
.az-slide.is-active,.az-slide[aria-current="true"]{display:block}
.az-figure{margin:0 auto 12px;height:var(--az-slide-h);max-width:100%;display:flex;align-items:center;justify-content:center}
.az-figure img{display:block;height:100% !important;width:auto !important;max-width:100%;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.az-entry-name{margin:.8rem 0 .5rem;font-size:clamp(16px,1.7vw,19px);font-weight:600}

/* Entry page */
.az-entry-wrap{max-width:1000px;margin:2rem auto;padding:0 1rem}
.az-entry-title{margin:.5rem 0 0}
.az-entry-headline{margin:.2rem 0 1rem}
.az-entry-media{margin:1rem 0}
.az-entry-slider{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.az-entry-slider .az-slides{display:flex;align-items:center;justify-content:center;height:var(--az-slide-h)}
.az-entry-slider .az-slide{display:none;width:100%;height:100%}
.az-entry-slider .az-slide img{display:block;height:100% !important;width:auto !important;max-width:100%;border-radius:12px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.az-back{display:inline-block;margin:0 0 .8rem;color:#fff;text-decoration:underline}
.az-entry-desc{margin:1rem 0}

@media (max-width:680px){
  .az-nav .az-ico{width:28px;height:28px}
}


/* --- Fix nav arrows to stay in a constant position --- */
.az-cat-slider, .az-entry-slider { position: relative !important; }
.az-cat-slider .az-nav, .az-entry-slider .az-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.az-cat-slider .az-prev, .az-entry-slider .az-prev { left: 10px; }
.az-cat-slider .az-next, .az-entry-slider .az-next { right: 10px; }

/* Ensure the slides area defines the reference height so nav doesn't jump */
.az-cat-slider .az-slides, .az-entry-slider .az-slides {
  height: var(--az-slide-h);
  width: 100%;
}


/* Center the card (image + text) between arrows */
.az-cat-slider .az-slide{
  display:none;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;           /* center horizontally within slide */
  justify-content:flex-start;
  text-align:center;
}
.az-cat-slider .az-slide .az-entry-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.az-cat-slider .az-entry-name{ text-align:center; }


/* Make slides span full slider width so content centers between arrows */
.az-cat-slider { position: relative; }
.az-cat-slider .az-slides { grid-column: 1 / -1; width: 100%; }
.az-cat-slider .az-slide { justify-content: center; }
.az-cat-slider .az-entry-link { display:flex; flex-direction:column; align-items:center; text-align:center; }
.az-cat-slider .az-entry-name { text-align:center; }


/* Entry page: make slider width shrink to content so arrows sit at image edges */
.az-entry-slider { display: inline-block; }
.az-entry-slider .az-slides { display: inline-flex !important; }
.az-entry-slider .az-slide { width: auto !important; }

/* Ensure arrow placement overrides any theme rules */
.az-entry-slider .az-nav { color: var(--az-amber) !important; }
.az-entry-slider .az-prev { left: 10px !important; right: auto !important; }
.az-entry-slider .az-next { right: 10px !important; left: auto !important; }



/* Entry detail page fixes: center slider and arrows at image edges */
.az-entry-wrap { text-align: center; }
.az-entry-slider { position: relative !important; display: inline-block; }
.az-entry-slider .az-slides { width: auto !important; display: inline-flex !important; }
.az-entry-slider .az-slide { width: auto !important; }
.az-entry-slider .az-prev { left: 10px !important; right: auto !important; }
.az-entry-slider .az-next { right: 10px !important; left: auto !important; }



/* Entry slider: use grid so arrows sit left/right of the image (like overview) */
.az-entry-slider {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.az-entry-slider .az-nav {
  position: static !important;      /* override any previous absolute */
  transform: none !important;
  align-self: center;
  justify-self: center;
  color: var(--az-amber) !important;
}
.az-entry-slider .az-prev { grid-column: 1; }
.az-entry-slider .az-slides { grid-column: 2; width: auto !important; }
.az-entry-slider .az-next { grid-column: 3; }

/* Slides shouldn't force full-width; shrink to image */
.az-entry-slider .az-slide { width: auto !important; height: 100%; }

/* Keep the image centered within its slide */
.az-entry-slider .az-slide img { display: block; height: 100%; width: auto; max-width: 100%; margin: 0 auto; }


.az-entry-slider .az-nav{ color: var(--az-amber) !important; }


/* Force visible amber chevrons on entry page */
.az-entry-slider .az-ico polyline { stroke: var(--az-amber) !important; }
.az-entry-slider .az-ico { width: 32px !important; height: 32px !important; }


.az-entry-slider .az-nav{ opacity:1 !important; }


/* Entry slider chevrons rendered as text to avoid theme SVG overrides */
.az-entry-slider .az-chevron {
  font-size: 34px;
  line-height: 1;
  color: var(--az-amber) !important;
  display: inline-block;
}



/* Ensure entry-page SVG arrows render in amber even if theme overrides */
.az-entry-slider .az-ico { width: 32px; height: 32px; display: inline-block; }
.az-entry-slider .az-ico polyline { stroke: #e2a23b !important; }

