/* ══════════════════════════════════════════
   global.css  –  Phoenix Fighters Astro
   Merge di style.css + pages.css
   ══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── Base ── */
body {
  background: #000;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Oswald', sans-serif;
  color: #ff6600;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ── Site Header ── */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.6rem 1rem;
  padding-top: max(0.6rem, env(safe-area-inset-top));
  width: 100%;
  overflow: hidden;
  line-height: 1;
}

.site-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 6.5vw, 4.2rem);
  font-weight: 900;
  color: #ff2200;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: block;
  width: 100%;
  max-width: 1280px;
  /* max-width: 100%; */
  overflow: hidden;
  text-overflow: clip;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 10px #ff4400, 0 0 20px #ff2200;
  animation: flicker 4s ease-in-out infinite alternate;
}

.site-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.75rem, 5.2vw, 3.36rem);
  font-weight: 900;
  color: #ff2200;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: block;
  width: 100%;
  /* max-width: 100%; */
  max-width: 1280px;
  overflow: hidden;
  text-overflow: clip;
  margin: 0 auto;
  text-align: center;
}

/* ── Navigation ── */
.main-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(0, 0, 0, 0.90);
}

.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 0;
  height: 52px;
  padding: 0;
  width: 100%;
}

.main-nav ul li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.main-nav a {
  color: #ccaa00;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  padding: 0 0.3rem;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  text-align: center;
  text-transform: uppercase;
  outline: none;
  position: relative;
  transition: color 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #ff2200, #ff6600, #ffcc00, #ff6600, #ff2200, transparent);
  transition: width 0.35s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  animation: nav-flame 1.2s ease-in-out infinite alternate;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
  animation: flame-line 1.4s ease-in-out infinite alternate;
}

@keyframes nav-flame {
  0%   { text-shadow: 0 0 4px #ffffff, 0 0 12px #ffee00, 0 0 24px #ff8800, 0 0 40px #ff2200; }
  100% { text-shadow: 0 0 8px #ffffff, 0 0 20px #ffee00, 0 0 36px #ff7700, 0 0 55px #ff2200; }
}

@keyframes flame-line {
  0%   { box-shadow: 0 0 5px #ff6600, 0 0 12px #ff2200; opacity: 1; }
  100% { box-shadow: 0 0 7px #ff8800, 0 0 16px #ff4400; opacity: 1; }
}

/* ── Hamburger (mobile) ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #550000;
  color: #ff6600;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: #ff4400;
  color: #ff4400;
}

/* ── Responsive breakpoints ── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .site-header {
    padding: max(0.5rem, env(safe-area-inset-top)) 0.8rem 0.3rem;
    align-items: center;
  }

  .site-title  { font-size: clamp(1rem, 6.5vw, 4.2rem); text-align: center; }
  .site-subtitle { font-size: clamp(0.75rem, 5.2vw, 3.36rem); text-align: center; }

  .main-nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.90);
    min-height: 48px;
  }

  /* Disabilita animazioni nav su mobile per evitare repaint */
  .main-nav a:hover,
  .main-nav a.active {
    animation: none;
    text-shadow: 0 0 8px #ffffff, 0 0 20px #ffee00;
  }
  .main-nav a:hover::after,
  .main-nav a.active::after { animation: none; }

  .main-nav ul {
    flex-direction: column;
    height: auto;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    padding: 0;
    transition: max-height 0.3s ease;
  }

  .main-nav ul li { flex: unset; width: 100%; }

  .main-nav ul.open {
    max-height: 400px;
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid #330000;
  }

  .main-nav a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    gap: 0.8rem;
    padding: 0.8rem max(1rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .home-grid { grid-template-columns: 1fr !important; }
  .page-content { padding: 0.5rem 0.75rem; }
  .cookie-banner { padding: 0.8rem max(1rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }

  .corsi-table th,
  .corsi-table td { padding: 0.675rem 1.26rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid .prova-box { grid-column: 1 / -1; }
  .main-nav ul { height: 52px; }
  .main-nav a { font-size: clamp(0.78rem, 1.4vw, 0.95rem); }
}

@media (min-width: 1025px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid .prova-box { grid-column: 1 / -1; }
  .main-nav ul { height: 56px; }
}

/* ── Embers ── */
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ember {
  position: absolute;
  border-radius: 50%;
  background: #ff4400;
  box-shadow: 0 0 6px #ff2200;
  animation: float linear infinite;
}

/* ── Animations ── */
@keyframes float {
  0%   { transform: translateY(100vh) translateX(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10vh) translateX(var(--drift)) scale(0.3); opacity: 0; }
}

@keyframes flicker {
  0%   { text-shadow: 0 0 6px #ff4400, 0 0 14px #ff2200, 0 0 28px #ff0000; }
  50%  { text-shadow: 0 0 8px #ff5500, 0 0 18px #ff3300, 0 0 34px #ff0000; }
  100% { text-shadow: 0 0 5px #ff3300, 0 0 12px #ff1100, 0 0 22px #cc0000; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 0, 0, 0.97);
  border-top: 1px solid #550000;
  box-shadow: 0 -4px 20px rgba(255, 34, 0, 0.2);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  color: #e8e4e0;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__link {
  color: #ccaa00;
  text-decoration: underline;
}

.cookie-banner__link:hover { color: #ffe600; }

.cookie-banner__actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cookie-banner__btn--accept { background: #cc0000; border-color: #cc0000; color: #fff; }
.cookie-banner__btn--accept:hover { background: #ff2200; border-color: #ff2200; }
.cookie-banner__btn--reject { background: transparent; border-color: #550000; color: #993300; }
.cookie-banner__btn--reject:hover { border-color: #993300; color: #cc4400; }

/* ── Page content area ── */
.page-content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
}

.page-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/logo_fenice_trasparente.svg') center center / contain no-repeat;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
}

/* ── Site Footer ── */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  padding: 1.2rem max(2rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
  border-top: 1px solid #330000;
  box-shadow: 0 -2px 20px rgba(255, 34, 0, 0.1);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccaa00;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover { color: #ffe600; text-shadow: 0 0 10px #ffcc00; }
.social-link svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   PAGINE
   ══════════════════════════════════════════ */

/* ── Home grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.4rem, 1.5vw, 0.8rem);
  width: 100%;
  max-width: 1280px;
  padding: 0.5rem clamp(0.8rem, 3vw, 1.5rem);
  position: relative;
  z-index: 2;
}

.info-box {
  background: rgba(15, 3, 0, 0.70);
  padding: clamp(0.6rem, 1.5vw, 1.2rem) clamp(0.8rem, 2vw, 2rem);
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
}

.info-box__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #ffcc00;
  text-shadow: 0 0 6px #cc8800;
  margin-bottom: 0.6rem;
}

.info-box__divider { display: none; }

.info-box__text {
  color: #e8e4e0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.4;
  margin-bottom: 1.4rem;
  text-align: justify;
  width: 100%;
}

.info-box__text strong { color: #ffcc00; }

.info-box__contact-note {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: #aaa09a;
  font-style: italic;
  margin-top: 1rem;
  line-height: 1.5;
}

.info-box__contact-note a {
  color: #ccaa00;
  text-decoration: underline;
  transition: color 0.2s;
}

.info-box__contact-note a:hover { color: #ffe600; }

/* ── Corsi table ── */
.corsi-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.corsi-table {
  width: auto;
  border-collapse: collapse;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin: 0 auto;
  background: rgba(30, 5, 0, 0.85);
  border: 1px solid #660000;
  box-shadow: 0 0 24px rgba(255, 34, 0, 0.18), inset 0 0 30px rgba(0,0,0,0.5);
  border-radius: 4px;
  overflow: hidden;
}

.corsi-table th {
  color: #ffcc00;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid #880000;
  padding: 0.75rem 1.4rem;
  text-align: center;
  white-space: nowrap;
  background: rgba(80, 0, 0, 0.45);
  text-shadow: 0 0 8px #ffaa00;
}

.corsi-table td {
  color: #f0ece8;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  padding: 0.75rem 1.4rem;
  border-bottom: 1px solid #3a0000;
  white-space: nowrap;
  text-align: center;
}

.corsi-table tbody tr:last-child td { border-bottom: none; }

.corsi-table tbody tr:hover td {
  background: rgba(255, 34, 0, 0.08);
  color: #ffffff;
}

/* ── Map ── */
.map-wrapper {
  border: 1px solid #330000;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 34, 0, 0.1);
  width: 100%;
  max-width: 100%;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* ── Prova gratuita box ── */
.prova-box {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.8rem, 2vw, 2rem);
  border: 1px solid #550000;
  box-shadow: 0 0 20px rgba(255, 34, 0, 0.1);
  width: fit-content;
  margin: 0 auto;
}

.prova-title {
  font-size: clamp(1.4rem, 4vw, 2rem) !important;
  color: #ff2200 !important;
  text-shadow: 0 0 8px #ff4400, 0 0 20px #ff2200 !important;
  margin-bottom: 1rem !important;
}

.prova-box .info-box__text {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── PDF Download ── */
.download-btn,
a.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2.5rem;
  background: #cc0000;
  border: 1px solid #cc0000;
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 34, 0, 0.3);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.download-btn:hover,
a.download-btn:hover {
  background: #ff2200;
  border-color: #ff2200;
  box-shadow: 0 0 30px rgba(255, 34, 0, 0.6);
}

.download-btn svg { flex-shrink: 0; }

/* ── Inner pages wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
}

.page-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: #ff2200;
  text-align: center;
  animation: flicker 4s ease-in-out infinite alternate;
}

.page-divider {
  width: 40%;
  height: 1px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, #ff2200, transparent);
  box-shadow: 0 0 8px #ff2200;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Safeguard / Cookie / Moduli pages ── */
.sg-wrapper {
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 2rem) 3rem;
  position: relative;
  z-index: 2;
}

.sg-main-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #ccaa00;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.sg-intro {
  margin: 1.2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sg-intro p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #e8e4e0;
  line-height: 1.4;
  text-align: justify;
  width: 100%;
}

.sg-intro strong { color: #e8e0d8; }

.sg-ext-link { color: #ccaa00; text-decoration: underline; transition: color 0.2s; }
.sg-ext-link:hover { color: #ffe600; }

.sg-section { margin-bottom: 2rem; padding: 1rem 1.2rem; background: rgba(15, 3, 0, 0.65); border-radius: 4px; }

.sg-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 700;
  color: #ccaa00;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sg-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.sg-section-body p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #e8e4e0;
  line-height: 1.4;
  text-align: justify;
  width: 100%;
}

.sg-section-body strong { color: #e8e0d8; }

.sg-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sg-list li {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #e8e4e0;
  line-height: 1.4;
  padding-left: 1.2rem;
  position: relative;
  text-align: justify;
}

.sg-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #993300;
}

.sg-contact {
  font-size: clamp(0.8rem, 1.6vw, 0.88rem) !important;
  color: #aaa09a !important;
  font-style: italic;
}

.sg-download { margin-top: 0.8rem; }

/* ── Gallery ── */
.gallery-section {
  width: 100%;
  margin-bottom: 2.5rem;
  background: rgba(20, 5, 0, 0.55);
  border: 1px solid #3a1500;
  border-radius: 6px;
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
}

.gallery-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: #ccaa00;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.gallery-section-desc {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #e8e4e0;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.gallery-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a0000;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-video-featured { margin-bottom: 0.5rem; }

.gallery-video-thumb {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: #0a0000;
  margin-bottom: 0.5rem;
}

.gallery-video-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-video-thumb:hover img { opacity: 0.75; }

.gallery-video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-video-thumb__label {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.gallery-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.2rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-social-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.gallery-yt-btn { background: #ff2200; color: #fff; }
.gallery-ig-btn { background: #833ab4; color: #fff; }
.gallery-fb-btn { background: #1877f2; color: #fff; }

/* ── YouTube click-to-play embed ── */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.yt-embed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.yt-embed:hover img { opacity: 0.8; }

.yt-embed__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-video-grid--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 641px) {
  .gallery-video-grid--featured {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
  }
  .gallery-video-grid--featured .yt-embed {
    aspect-ratio: unset;
    height: 100%;
    min-height: 280px;
  }
}

.yt-embed--short {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin: 0 auto;
}
