/**
 * Block: actionworld/feature – gallery + heading + text/list (+ button)
 * Replaces the v1 Elementor gallery/carousel pairs. Alternates sides.
 */
.aw-feature { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

.aw-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2.5rem, 6vw, 6.5rem);
}
.aw-feature--flip .aw-gallery { order: 2; }

.aw-feature__body h2 {
  margin-bottom: .6em;
  font-size: var(--aw-step-3);
}
.aw-feature__body .aw-btn { margin-top: 1rem; }

/* Prose: lists get a diamond in the attraction colour */
.aw-prose { color: #d5d9e0; max-width: 58ch; }
.aw-prose ul { margin: 0 0 1em; padding: 0; list-style: none; }
.aw-prose li { position: relative; padding: .35em 0 .35em 1.6em; }
.aw-prose li::before {
  content: "";
  position: absolute;
  left: .2em; top: 1.05em;
  width: 7px; height: 7px;
  background: var(--c);
  transform: rotate(45deg);
}
.aw-prose li + li { border-top: 1px solid rgb(255 255 255 / .07); }

/* Gallery: one large + three small, opens the lightbox */
.aw-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 4 / 3;
}
/* Colour glow behind the images */
.aw-gallery::before {
  content: "";
  position: absolute;
  inset: 8% -6% -10% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent);
  filter: blur(50px);
}
.aw-feature--flip .aw-gallery::before { inset: 8% 10% -10% -6%; }
.aw-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--aw-radius-s);
  background: var(--aw-ink);
  cursor: zoom-in;
}
.aw-gallery__item:first-child { grid-row: 1 / -1; }
.aw-gallery--3 { grid-template-rows: repeat(2, 1fr); }
.aw-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--aw-ease-out), filter .5s;
}
.aw-gallery__item::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--aw-dur) var(--aw-ease-out);
}
.aw-gallery__item:hover img,
.aw-gallery__item:focus-visible img { transform: scale(1.06); }
.aw-gallery__item:hover::after,
.aw-gallery__item:focus-visible::after { transform: none; }
.aw-gallery__item:focus-visible { outline-offset: -3px; }

@media (max-width: 900px) {
  .aw-feature__grid { grid-template-columns: 1fr; }
  .aw-feature--flip .aw-gallery { order: 0; }

  /* Mobile: swipeable row, like the v1 carousel */
  .aw-gallery {
    display: flex;
    aspect-ratio: auto;
    gap: 8px;
    margin-inline: calc(-1 * var(--aw-gutter));
    padding-inline: var(--aw-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .aw-gallery::-webkit-scrollbar { display: none; }
  .aw-gallery__item { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
}

/* Lightbox ---------------------------------------------------------------- */
.aw-lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(0 0 0 / .94);
  color: var(--aw-white);
}
.aw-lightbox::backdrop { background: transparent; }
.aw-lightbox[open] { display: grid; place-items: center; }
.aw-lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 82dvh;
  border-radius: var(--aw-radius-s);
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .aw-lightbox[open] img { animation: aw-lb-in .45s var(--aw-ease-out); }
}
@keyframes aw-lb-in { from { opacity: 0; transform: scale(.96); } }
.aw-lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--aw-line);
  border-radius: 50%;
  background: rgb(0 0 0 / .5);
  color: var(--aw-white);
  cursor: pointer;
  transition: background var(--aw-dur-fast), border-color var(--aw-dur-fast);
}
.aw-lightbox__btn:hover { background: var(--aw-white); color: var(--aw-black); }
.aw-lightbox__btn svg { width: 22px; height: 22px; }
.aw-lightbox__close { top: 1rem; right: 1rem; }
.aw-lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.aw-lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.aw-lightbox__count {
  position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0;
  color: var(--aw-mute);
  font-size: var(--aw-step--1);
  font-variant-numeric: tabular-nums;
}
