/* ==========================================================================
   Live cameras (home)

   All four feeds shown together as equal 16:9 cards. Self-contained and
   scoped under .cams, so none of it leaks into the rest of the page.
   ========================================================================== */

.cams {
  --cam-purple: #7f3f98;
  --cam-ink:    #2b2530;
  --cam-soft:   #6d6577;
  --cam-line:   #e7e2ec;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------------------------------------------------------------- head -- */

.cams-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cams-head h3 {
  margin: 0;
  font-family: "Amatic SC", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cam-purple);
}

.cams-credit { margin: 4px 0 0; font-size: .8125rem; color: var(--cam-soft); }
.cams-credit a { color: var(--cam-soft); text-decoration: underline; }
.cams-credit a:hover { color: var(--cam-purple); }

.cams-date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cam-soft);
}

/* ---------------------------------------------------------------- grid -- */

/* All four visible at once, as equal 16:9 cards. What made the original feel
   bulky was bare iframes with labels stacked above and below them; here the
   labels sit on the image and the tiles share one consistent shape. */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cam-tile {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #17121c;
  box-shadow: 0 2px 8px rgba(43, 37, 48, .10), 0 14px 34px rgba(43, 37, 48, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cam-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(43, 37, 48, .14), 0 22px 48px rgba(43, 37, 48, .2);
}

.cam-tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #17121c;
}
@supports not (aspect-ratio: 16 / 9) {
  .cam-tile-media { height: 0; padding-bottom: 56.25%; }
}

.cam-tile-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* "Live" pill with a slow pulse, so the feeds read as current. */
.cam-live {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 18, 28, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}
.cam-live i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff4d4d;
  animation: camPulse 2s ease-in-out infinite;
}
@keyframes camPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Labels on the image rather than stacked around it. */
.cam-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 30px 16px 13px;
  background: linear-gradient(to top, rgba(23, 18, 28, .85), rgba(23, 18, 28, .35) 55%, transparent);
  color: #fff;
  pointer-events: none;
}
.cam-tile-caption strong { font-size: 1rem; font-weight: 700; }
.cam-tile-caption span { font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.cam-tile-caption em {
  flex-basis: 100%;
  font-size: .6875rem;
  font-style: normal;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------- links -- */

.cam-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 22px;
}
.cam-links a {
  position: relative;
  color: var(--cam-purple);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.cam-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.cam-links a:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 780px) {
  .cam-grid { grid-template-columns: 1fr; gap: 14px; }
  .cams-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  .cam-tile { border-radius: 14px; }
  .cam-tile-caption { padding: 26px 14px 11px; }
  .cam-links { flex-direction: column; align-items: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cam-live i { animation: none; }
  .cam-tile, .cam-links a::after { transition: none; }
  .cam-tile:hover { transform: none; }
}
