/* ─── Travel videos: home section ───────────────────────────────── */
.mk-reels-section {
  background-color: var(--cream);
  padding-block: var(--space-24);
}

/* ─── Video cards (shared by home, offers and about) ────────────── */
.mk-reels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Grow from 140px up to 190px, so six cards share one row on desktop
   instead of wrapping one orphan card onto a second line. */
.mk-reel {
  flex: 1 1 140px;
  max-inline-size: 190px;
}

.mk-reel__link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--green-900);
  box-shadow: var(--shadow-card);
  color: var(--paper);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mk-reel__link:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.mk-reel__link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.mk-reel__poster {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Dark fade at the bottom so the white title stays readable on any
   frame. Vertical gradient: no inline direction involved, so it reads
   the same in RTL and LTR. */
.mk-reel__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / 0.75));
  pointer-events: none;
}

.mk-reel__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.9);
  color: var(--green-900);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
  transition: transform 0.2s ease;
}

.mk-reel__play svg {
  /* Optical centring: the play triangle points physically right in both
     languages, so this nudge is physical too (logical would flip it). */
  margin-left: 3px;
}

.mk-reel__link:hover .mk-reel__play {
  transform: scale(1.08);
}

.mk-reel__duration {
  position: absolute;
  z-index: 1;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-2);
  padding: 0.125rem var(--space-2);
  border-radius: var(--radius-pill);
  background-color: rgb(0 0 0 / 0.6);
  font-family: var(--font-latin);
  font-size: 0.75rem;
}

.mk-reel__title {
  position: absolute;
  z-index: 1;
  inset-inline: var(--space-3);
  inset-block-end: var(--space-3);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

/* Tablets and phones: one swipeable row instead of wrapping into
   uneven lines. Rows short enough to fit stay centred. */
@media (max-width: 900px) {
  .mk-reels:has(.mk-reel:nth-child(4)) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block-end: var(--space-2);
  }

  .mk-reels:has(.mk-reel:nth-child(4)) .mk-reel {
    flex: 0 0 28%;
    max-inline-size: none;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .mk-reels {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block-end: var(--space-2);
  }

  .mk-reels .mk-reel,
  .mk-reels:has(.mk-reel:nth-child(4)) .mk-reel {
    flex: 0 0 44%;
    max-inline-size: none;
    scroll-snap-align: start;
  }

  /* A single video (about page) has nothing to swipe to. */
  .mk-reels .mk-reel:only-child {
    flex-basis: 55%;
  }
}

/* ─── Player dialog ─────────────────────────────────────────────── */
.mk-video-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.mk-video-dialog::backdrop {
  background-color: rgb(0 0 0 / 0.85);
}

.mk-video-dialog__video {
  display: block;
  inline-size: auto;
  max-inline-size: 92vw;
  block-size: 86vh;
  max-block-size: calc(92vw * 16 / 9);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background-color: #000;
}

.mk-video-dialog__close {
  position: absolute;
  inset-block-start: calc(-1 * var(--space-4));
  inset-inline-end: calc(-1 * var(--space-4));
  z-index: 1;
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: 50%;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.mk-video-dialog__close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .mk-video-dialog__close {
    inset-block-start: var(--space-2);
    inset-inline-end: var(--space-2);
  }
}

/* ─── Offers page: videos under the Umrah programmes ────────────── */
.mk-omra__videos {
  margin-block-start: var(--space-16);
}

.mk-omra__videos-title {
  margin-block-end: var(--space-6);
  color: var(--teal-700);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  text-align: center;
}

/* ─── About page: agency video beside the contact button ────────── */
.mk-about-story__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.mk-about-story__actions .mk-reels {
  justify-content: flex-start;
}

.mk-about-story__actions .mk-reel {
  flex: 0 0 150px;
}
