:root {
  --aswg-bg: #efa716;
  --aswg-text: #ffffff;
  --aswg-focus: #000000;
}

/* 
  FULL SCREEN-WIDTH BREAKOUT CONTAINER
  Breaks out of standard fixed-width theme wrappers (Twenty Twenty-Four, Astra, Kadence, etc.)
*/
.aswg-fullwidth-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--aswg-bg);
  padding: 44px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.aswg-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Central Stage matching screenshot portrait ratio */
.aswg-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 620px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  background-color: #111111;
}

.aswg-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.aswg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s;
}

.aswg-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.aswg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 
  ADA / WCAG ACCESSIBILITY SCRIM
  Opaque bottom gradient ensures white caption text maintains > 4.5:1 contrast
*/
.aswg-caption-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 28px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  text-align: center;
  color: var(--aswg-text);
  z-index: 3;
  pointer-events: none;
}

.aswg-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.aswg-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
  color: #f1f1f1;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Circular Navigation Chevrons */
.aswg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.aswg-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.aswg-nav-btn.prev {
  left: max(16px, calc(50% - 370px));
}

.aswg-nav-btn.next {
  right: max(16px, calc(50% - 370px));
}

.aswg-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: #555555;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WCAG Visible Keyboard Focus Indicator */
.aswg-nav-btn:focus-visible,
.aswg-dot:focus-visible,
.aswg-carousel:focus-visible {
  outline: 3px solid var(--aswg-focus);
  outline-offset: 3px;
}

/* Pagination Dots */
.aswg-dots-container {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.aswg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.aswg-dot[aria-current="true"] {
  background: #ffffff;
  transform: scale(1.25);
}

/* Screen Reader Only Utility */
.aswg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .aswg-fullwidth-wrapper {
    padding: 24px 10px;
    min-height: 480px;
  }
  .aswg-stage {
    height: 480px;
    max-width: 100%;
  }
  .aswg-nav-btn {
    width: 42px;
    height: 42px;
  }
  .aswg-nav-btn.prev { left: 8px; }
  .aswg-nav-btn.next { right: 8px; }
}