/* Responsive media gallery (2 cols desktop, 1 col mobile) */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

@media (max-width: 720px) {
  .media-gallery {
    grid-template-columns: 1fr;
  }
}

/* Card basics */
.media-card {
  border-radius: 12px;
  overflow: hidden;
  background: #18bed0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.media-card figure {
  margin: 0;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Optional caption */
.media-card figcaption {
  padding: .6rem .8rem;
  font-size: 1.3rem;
  color: #000;
}

/* Video card with play overlay */
.video-card {
  position: relative;
  cursor: pointer;
}

.video-card .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-badge .triangle {
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

/* Hover affordance (desktop only) */
@media (hover:hover) and (pointer:fine) {
  .video-card:hover img {
    filter: brightness(.9);
  }
}

/* Modal (uses <dialog>) */
.media-modal::backdrop {
  background: rgba(0,0,0,.6);
}
.media-modal {
  border: 0;
  border-radius: 14px;
  padding: 0;
  max-width: min(960px, 92vw);
  width: 100%;
  overflow: hidden;
}

/* Responsive 16:9 container for iframe */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal header */
.modal-bar {
  display: flex;
  justify-content: flex-end;
  padding: .5rem .75rem;
  background: #111;
}
.modal-close {
  background: #ffcd12;
  color: #000;
  border: 0;
  border-radius: 8px;
  padding: .4rem .7rem;
  font-weight: 700;
  cursor: pointer;
}

/* Layout */
.spec-container {
  max-width: 600px;
  margin: 2rem auto 0; /* center horizontally */
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-item {
  display: flex;
  align-items: flex-start; /* top-align for multi-line text */
  gap: 1.25rem;            /* increased space between icon and text */
  margin-bottom: 1.1rem;
  text-align: left;        /* ensure text is left-aligned */
}

/* Icon sizing: desktop default 48, mobile 36 */
.spec-icon,
.spec-item svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* Text sizing for two-line blocks */
.spec-text { font-size: 1rem; line-height: 1.45; }

/* Mobile tweaks */
@media (max-width: 767px) {
  .spec-icon,
  .spec-item svg {
    width: 36px;
    height: 36px;
  }
  .spec-text { font-size: 0.95rem; }
}

/* Optional: make line icons inherit page color (only if your SVGs use currentColor) */
.spec-item svg { fill: none; stroke: currentColor; stroke-width: 2; }

.site-footer .social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

.site-footer .social-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 9999px;
  align-items: center; justify-content: center;
  border: 1px solid currentColor;
  color: inherit; text-decoration: none;
  opacity: 0.9;
}
.site-footer .social-icon img { display:block; width:20px; height:20px; }

@media (hover:hover){
  .site-footer .social-icon{ transition: transform .2s ease, opacity .2s ease; }
  .site-footer .social-icon:hover{ opacity:1; transform: translateY(-1px); }
}

/* Screen-reader only helper (if not already present) */
.sr-only {
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

