/* =====================================================
   SOUTHERN TOUCH — GALLERY (scroll strip, grid, lightbox)
   Colors / type match the home page menu widget.
===================================================== */

.st-gallery,
.st-gallery *,
.stg-lb,
.stg-lb * {
  box-sizing: border-box;
}

.st-gallery {
  --st-red: #9f1018;
  --st-red-dark: #720b11;
  --st-black: #111111;
  --st-text: #555555;
  --st-blush: #fff5f6;
  --stg-gap: 12px;
  --stg-radius: 14px;

  position: relative;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.st-gallery--bg {
  padding: 68px 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(159, 16, 24, 0.08), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
}

/* ---------- Heading (same look as "Explore Our Menus") ---------- */

.st-gallery-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 0 22px;
  text-align: center;
}

.st-gallery-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--st-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.st-gallery-heading h2 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--st-black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.st-gallery-heading p {
  margin: 0 auto;
  padding: 0;
  color: var(--st-text);
  font-size: 16px;
  line-height: 1.7;
}

.st-gallery-line {
  width: 70px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 10px;
  background: var(--st-red);
}

/* ---------- Items (shared) ---------- */

.st-gallery-stage {
  position: relative;
}

.st-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--stg-radius);
  background: #222222;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  text-decoration: none !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.st-gallery-item--video,
.st-gallery-item--embed {
  cursor: pointer;
}

.st-gallery-item img,
.st-gallery-item video,
.st-gallery-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.st-gallery-placeholder {
  background: linear-gradient(135deg, #2a2a2a, #111111);
}

.st-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.st-gallery-item:hover img,
.st-gallery-item:hover video,
.st-gallery-item:focus-visible img {
  transform: scale(1.05);
}

.st-gallery-item:hover::after,
.st-gallery-item:focus-visible::after {
  opacity: 1;
}

.st-gallery-item:focus-visible {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--st-red);
}

/* Play badge — always visible on videos */
.st-gallery-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(159, 16, 24, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.25s ease;
  pointer-events: none;
}

.st-gallery-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: #ffffff;
}

.st-gallery-item:hover .st-gallery-play {
  background: var(--st-red-dark);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Expand badge — appears on hover for photos */
.st-gallery-zoom {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.st-gallery-zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--st-red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-gallery-item:hover .st-gallery-zoom,
.st-gallery-item:focus-visible .st-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll strip ---------- */

.st-gallery--scroll .st-gallery-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.st-gallery--scroll .st-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.st-gallery--scroll .st-gallery-viewport.is-dragging {
  cursor: grabbing;
}

.st-gallery--scroll .st-gallery-viewport.is-dragging .st-gallery-item {
  cursor: grabbing;
}

.st-gallery--scroll .st-gallery-track {
  display: flex;
  gap: var(--stg-gap);
  width: max-content;
  padding: 6px 0 18px;
}

.st-gallery--scroll .st-gallery-item {
  flex: 0 0 auto;
  height: var(--stg-h, 380px);
  aspect-ratio: var(--stg-ar, 4 / 3);
  max-width: 88vw;
}

/* Soft edge fade so the strip feels continuous */
.st-gallery--scroll .st-gallery-stage::before,
.st-gallery--scroll .st-gallery-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 12px;
  width: 48px;
  pointer-events: none;
}

.st-gallery--scroll .st-gallery-stage::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.st-gallery--scroll .st-gallery-stage::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.st-gallery--bg.st-gallery--scroll .st-gallery-stage::before {
  background: linear-gradient(to right, rgba(255, 245, 246, 0.85), rgba(255, 245, 246, 0));
}

.st-gallery--bg.st-gallery--scroll .st-gallery-stage::after {
  background: linear-gradient(to left, rgba(255, 245, 246, 0.85), rgba(255, 245, 246, 0));
}

.st-gallery-arrow {
  position: absolute;
  z-index: 4;
  top: calc(50% - 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.st-gallery-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--st-red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-gallery-arrow:hover,
.st-gallery-arrow:focus-visible {
  background: var(--st-red);
  outline: none;
}

.st-gallery-arrow:hover svg,
.st-gallery-arrow:focus-visible svg {
  stroke: #ffffff;
}

.st-gallery-arrow--prev {
  left: 18px;
}

.st-gallery-arrow--next {
  right: 18px;
}

/* ---------- Grid (masonry) ---------- */

.st-gallery--grid .st-gallery-viewport {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Even grid that reads left-to-right, so the order set in the dashboard is the order on the page. */
.st-gallery--grid .st-gallery-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--stg-gap);
}

.st-gallery--grid .st-gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
}


/* ---------- Cards (matches the "Explore Our Menus" cards) ---------- */

.st-gallery-item[hidden] {
  display: none !important;
}

.st-gallery--cards .st-gallery-viewport {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 22px;
}

.st-gallery--cards .st-gallery-track {
  display: grid;
  grid-template-columns: repeat(var(--stg-cols, 4), minmax(0, 1fr));
  gap: 20px;
}

.st-gallery--cards .st-gallery-item {
  min-height: 330px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.st-gallery--cards .st-gallery-item img,
.st-gallery--cards .st-gallery-item video {
  position: absolute;
  inset: 0;
  min-height: 330px;
}

.st-gallery--cards .st-gallery-item::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 1;
}

.st-gallery--cards .st-gallery-zoom {
  display: none;
}

.st-gallery-card-text {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 20px;
  pointer-events: none;
}

.st-gallery-card-tag {
  display: block;
  margin-bottom: 6px;
  color: #f6b4bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.st-gallery-card-title {
  display: block;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
}

.st-gallery-more {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--st-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.st-gallery--cards .st-gallery-play {
  top: 42%;
}

button.st-gallery-button {
  font-family: inherit;
  cursor: pointer;
}

@media screen and (max-width: 1000px) {
  .st-gallery--cards .st-gallery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Footer button (same as menu button) ---------- */

.st-gallery-footer {
  margin: 30px auto 0;
  padding: 0 22px;
  text-align: center;
}

.st-gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border: 2px solid var(--st-red);
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--st-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.st-gallery-button:hover {
  color: #ffffff !important;
  background: var(--st-red-dark);
  border-color: var(--st-red-dark);
  transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
  .st-gallery {
    --stg-gap: 10px;
    --stg-radius: 12px;
  }

  .st-gallery--bg {
    padding: 48px 0;
  }

  .st-gallery--scroll .st-gallery-item {
    height: calc(var(--stg-h, 380px) * 0.72);
  }

  .st-gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .st-gallery-arrow--prev {
    left: 8px;
  }

  .st-gallery-arrow--next {
    right: 8px;
  }

  .st-gallery--scroll .st-gallery-stage::before,
  .st-gallery--scroll .st-gallery-stage::after {
    width: 20px;
  }

  .st-gallery--grid .st-gallery-viewport {
    padding: 0 14px;
  }

  .st-gallery--grid .st-gallery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-gallery-play {
    width: 52px;
    height: 52px;
  }

  .st-gallery--cards .st-gallery-viewport {
    padding: 0 14px;
  }

  .st-gallery--cards .st-gallery-track {
    gap: 12px;
  }

  .st-gallery--cards .st-gallery-item,
  .st-gallery--cards .st-gallery-item img,
  .st-gallery--cards .st-gallery-item video {
    min-height: 230px;
  }

  .st-gallery-card-text {
    padding: 14px 12px;
  }

  .st-gallery-card-tag {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .st-gallery-card-title {
    font-size: 17px;
  }

  .st-gallery-more {
    top: 8px;
    right: 8px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .st-gallery-button {
    width: 100%;
  }
}

/* =====================================================
   LIGHTBOX
===================================================== */

.stg-lb {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: none;
}

.stg-lb.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

html.stg-lb-lock,
html.stg-lb-lock body {
  overflow: hidden !important;
}

.stg-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 84px 88px;
}

.stg-lb-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stg-lb-media.is-swapping {
  opacity: 0;
}

.stg-lb-media img,
.stg-lb-media video {
  display: block;
  max-width: calc(100vw - 168px);
  max-height: calc(100vh - 152px);
  max-height: calc(100dvh - 152px);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000000;
  user-select: none;
  -webkit-user-drag: none;
}

.stg-lb-media video {
  object-fit: contain;
}

.stg-lb-media img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.stg-lb-media.is-zoomed img {
  cursor: grab;
  transition: none;
}

.stg-lb-frame {
  position: relative;
  width: min(calc(100vw - 168px), calc((100vh - 152px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stg-lb-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stg-lb-btn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.stg-lb-btn:hover,
.stg-lb-btn:focus-visible {
  background: #9f1018;
  outline: none;
}

.stg-lb-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stg-lb-close {
  top: 14px;
  right: 14px;
}

.stg-lb-prev,
.stg-lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.stg-lb-prev {
  left: 16px;
}

.stg-lb-next {
  right: 16px;
}

.stg-lb-counter {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.stg-lb-caption {
  position: absolute;
  z-index: 3;
  right: 90px;
  bottom: 26px;
  left: 90px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.stg-lb-caption:empty {
  display: none;
}

.stg-lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f6b4bb;
  border-radius: 50%;
  animation: stg-spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.stg-lb.is-loading .stg-lb-spinner {
  opacity: 1;
}

.stg-lb.is-single .stg-lb-prev,
.stg-lb.is-single .stg-lb-next {
  display: none;
}

@keyframes stg-spin {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 700px) {
  .stg-lb-stage {
    padding: 60px 0 96px;
  }

  .stg-lb-media img,
  .stg-lb-media video {
    max-width: 100vw;
    max-height: calc(100vh - 156px);
    max-height: calc(100dvh - 156px);
    border-radius: 0;
  }

  .stg-lb-frame {
    width: 100vw;
    border-radius: 0;
  }

  .stg-lb-prev,
  .stg-lb-next {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .stg-lb-caption {
    right: 72px;
    bottom: 22px;
    left: 72px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-gallery-item img,
  .st-gallery-item video,
  .stg-lb,
  .stg-lb-media {
    transition: none;
  }
}
