:root {
  --sc-height: auto;          /* Optional fixed height (e.g., 700px). Default auto for no-crop. */
  --sc-maxwidth: 100%;        /* Max width of the whole carousel area */
}

/* Outer container (let buttons hang outside) */
.sc-carousel {
  position: relative;
  width: 100%;
  max-width: var(--sc-maxwidth);
  margin: 0 auto 24px auto;
  overflow: visible;          /* buttons can sit slightly outside */
}

/* White, framed viewport to match your mockup */
.sc-viewport {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;           /* hide slides beyond viewport */
}

/* Track + slides */
.sc-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.sc-slide {
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  background: #fff;           /* white “letterbox” behind image */
  height: var(--sc-height);   /* auto by default; set via shortcode if you want a fixed frame */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;                 /* keep clean borderless fit */
}

/* Images – keep FULLY visible, never cropped */
.sc-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;               /* natural ratio */
  object-fit: contain;        /* the key: no crop */
  display: block;
  pointer-events: none;       /* pass clicks through to buttons if overlapped */
}

/* Navigation buttons (use your PNGs) */
.sc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  border: 0  !important;
  background: transparent !important;    /* we use an <img> inside */
  width: 60px;
  height: 60px;
  padding: 0 !important;
  cursor: pointer;
  pointer-events: auto !important;



 
}

.sc-nav img {
  width: 60px;
  height: 60px;
  display: block;
}

/* Place outside the white frame a bit (like your screenshot) */
.sc-prev { left: -30px; }
.sc-next { right: -30px; }

/* Focus outline for accessibility */
.sc-nav:focus { outline: 2px solid #333; outline-offset: 2px; }

/* Small screens – tuck buttons in a bit */
@media (max-width: 600px) {
  .sc-nav,
  .sc-nav img { width: 44px; height: 44px; }
  .sc-prev { left: -18px; }
  .sc-next { right: -18px; }
}

/* Notice style (fallback messages) */
.sc-notice {
  padding: 12px;
  background: #fff7e6;
  border: 1px solid #ffdfa3;
  border-radius: 6px;
  color: #8a5a00;
  font-size: 14px;
}
