/* Home "Dining & Bars" (tools/dining-section.mjs): a row of tall outlet cards in the manner of The Savoy's
   "At the Savoy" — small label with a line-diamond-line ornament over the photo; on hover/focus a deep burgundy
   panel wipes up from the bottom with the outlet sketch, a short heading and the description. Touch screens get the
   photo with the panel below it (never text on the photo). */
.sdo-atl {
  --atl-ink: #3d3d3d;
  --atl-text: #5c5550;
  --atl-panel: #4a1420;
  --atl-gap: 6px;
  --atl-card: clamp(280px, 28vw, 420px);
  --atl-ease: cubic-bezier(.22, 1, .36, 1);
  padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  background: #f3eee7;
  color: var(--atl-ink);
}
.sdo-atl__head { max-width: 760px; margin: 0 auto clamp(36px, 4.5vw, 56px); padding: 0 24px; text-align: center; }
.sdo-atl__title {
  margin: 0 0 18px !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(22px, 2.1vw, 28px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--atl-ink);
}
.sdo-atl__intro { margin: 0 !important; font-family: "EB Garamond", Georgia, serif; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--atl-text); }

.sdo-atl__viewport { position: relative; }
.sdo-atl__track {
  display: flex;
  gap: var(--atl-gap);
  margin: 0 !important;
  padding: 0 max(16px, calc((100% - 3 * var(--atl-card) - 2 * var(--atl-gap)) / 2));
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100% - 3 * var(--atl-card) - 2 * var(--atl-gap)) / 2));
  scrollbar-width: none;
}
.sdo-atl__track::-webkit-scrollbar { display: none; }
.sdo-atl__item { flex: 0 0 var(--atl-card); margin: 0 !important; scroll-snap-align: start; }

.sdo-atl__card {
  position: relative;
  display: block;
  aspect-ratio: 403 / 585;
  overflow: hidden;
  background: #2b2622;
  color: #fff !important;
  text-decoration: none !important;
  isolation: isolate;
}
/* !important beats the theme's .elementor img { height: auto } */
.sdo-atl__photo { position: absolute; inset: 0; width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--atl-ease); }
.sdo-atl__card::before { /* keeps the label readable on bright photos */
  content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 12, 10, .55), rgba(20, 12, 10, 0));
}

.sdo-atl__label { position: absolute; inset: 26px 24px auto; z-index: 3; display: grid; justify-items: center; gap: 12px; text-align: center; }
.sdo-atl__name {
  order: -1;
  margin: 0 !important;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff !important;
}
.sdo-atl__orn { display: flex; align-items: center; gap: 10px; width: min(100%, 300px); }
.sdo-atl__orn i { flex: 1; height: 1px; }
.sdo-atl__orn i:first-child { background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); }
.sdo-atl__orn i:last-child { background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); }
.sdo-atl__orn b { width: 6px; height: 6px; border: 1px solid #fff; transform: rotate(45deg); transition: background-color .4s ease; }

.sdo-atl__panel { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 28px 34px; }
.sdo-atl__wipe { position: absolute; inset: 0; z-index: -1; background: var(--atl-panel); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--atl-ease); }
.sdo-atl__icon { align-self: center; width: 62%; max-height: 42%; margin: auto 0 28px; object-fit: contain; }
.sdo-atl__icon, .sdo-atl__copy { opacity: 0; translate: 0 18px; transition: opacity .45s ease, translate .7s var(--atl-ease); }
.sdo-atl__kicker {
  margin: 0 0 12px !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(20px, 1.6vw, 24px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff !important;
}
.sdo-atl__desc { margin: 0 0 18px !important; font-family: "EB Garamond", Georgia, serif; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.sdo-atl__more { font-family: Montserrat, system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.sdo-atl__more::after { content: " \203A"; }

@media (hover: hover) and (pointer: fine) {
  .sdo-atl__card:hover .sdo-atl__wipe, .sdo-atl__card:focus-visible .sdo-atl__wipe { transform: scaleY(1); }
  .sdo-atl__card:hover .sdo-atl__icon, .sdo-atl__card:focus-visible .sdo-atl__icon,
  .sdo-atl__card:hover .sdo-atl__copy, .sdo-atl__card:focus-visible .sdo-atl__copy { opacity: 1; translate: none; transition-delay: .18s; }
  .sdo-atl__card:hover .sdo-atl__photo { transform: scale(1.04); }
  .sdo-atl__card:hover .sdo-atl__orn b, .sdo-atl__card:focus-visible .sdo-atl__orn b { background: #fff; }
}
.sdo-atl__card:focus-visible { outline: 2px solid var(--atl-panel); outline-offset: 3px; }

/* Touch: photo on top, burgundy panel underneath with the words. */
@media (hover: none), (pointer: coarse) {
  .sdo-atl__card { display: flex; flex-direction: column; height: 100%; aspect-ratio: auto; background: var(--atl-panel); }
  .sdo-atl__photo { position: relative; inset: auto; aspect-ratio: 4 / 3; height: auto !important; flex: none; }
  .sdo-atl__card::before { height: calc(var(--atl-card) * .75 * .45); }
  .sdo-atl__panel { position: relative; inset: auto; flex: 1; justify-content: flex-start; padding: 26px 24px 28px; }
  .sdo-atl__wipe, .sdo-atl__icon { display: none; }
  .sdo-atl__copy { opacity: 1; translate: none; }
  .sdo-atl__desc { font-size: 17px; }
}

.sdo-atl__pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; font-family: Montserrat, system-ui, sans-serif; font-size: 12px; letter-spacing: .12em; color: var(--atl-ink); }
.sdo-atl__pager[hidden] { display: none; }
.sdo-atl__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0;
  background: transparent !important; color: var(--atl-ink) !important; cursor: pointer; transition: opacity .2s ease;
}
.sdo-atl__arrow:disabled { opacity: .3; cursor: default; }
.sdo-atl__arrow svg { width: 34px; height: 12px; }
.sdo-atl__sep { display: inline-block; width: 1px; height: 12px; margin: 0 10px; vertical-align: -2px; background: currentColor; opacity: .5; }

.sdo-atl__cta-wrap { margin-top: 34px; text-align: center; }
.sdo-atl__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: #494949; color: #fff !important;
  font-family: Montserrat, system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important;
  transition: background-color .25s ease;
}
.sdo-atl__cta:hover { background: var(--atl-panel); }

@media (max-width: 767px) {
  .sdo-atl { --atl-card: 84vw; }
  .sdo-atl__track { padding: 0 8vw; scroll-padding-inline: 8vw; scroll-snap-type: x mandatory; }
  .sdo-atl__item { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sdo-atl__wipe, .sdo-atl__icon, .sdo-atl__copy, .sdo-atl__photo { transition: none !important; }
}
