/* Latest Videos gallery - pulls live from the YouTube Data API (see assets/js/youtube-gallery.js) */

.yt-gallery-section {
  padding-top: 5rem;
  padding-bottom: 0.5rem;
  background-color: transparent;
}

.yt-gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.yt-gallery-header .yt-gallery-title {
  color: #f1f1f4;
  margin-bottom: 0.75rem;
}

.yt-gallery-header .yt-gallery-subtitle {
  color: #a9abb6;
}

.yt-gallery-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.95rem 2.3rem;
  border-radius: 3rem;
  background-image: linear-gradient(135deg, #5eebc8, #19ca9e);
  color: #05231c !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(94, 235, 200, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.yt-gallery-link:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(94, 235, 200, 0.55);
  color: #05231c !important;
}

.yt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Featured block: 3 hand-picked videos shown above the latest feed */
.yt-featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 3.5rem;
}

.yt-featured-card {
  border-color: rgba(255, 143, 196, 0.35);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8), 0 0 30px -14px rgba(255, 143, 196, 0.5);
}

.yt-featured-card:hover {
  border-color: rgba(255, 143, 196, 0.6);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 44px -10px rgba(255, 143, 196, 0.55);
}

.yt-featured-card .yt-gallery-thumb-wrap::before {
  content: "Featured";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #3a1226;
  background-image: linear-gradient(135deg, #ff8fc4, #ffb3d6);
  box-shadow: 0 4px 14px -4px rgba(255, 143, 196, 0.7);
}

.yt-gallery-divider {
  width: 100%;
  max-width: 340px;
  height: 1px;
  margin: 0 auto 3.5rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.yt-gallery-card {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  background-color: rgba(20, 20, 27, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.yt-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(94, 235, 200, 0.35);
  border-color: rgba(94, 235, 200, 0.4);
}

.yt-gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
}

.yt-gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.yt-gallery-card:hover .yt-gallery-thumb-wrap img {
  transform: scale(1.08);
}

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

.yt-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(8, 66, 52, 0.75);
  border: 2px solid #5eebc8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.yt-gallery-card:hover .yt-gallery-play {
  background-color: #5eebc8;
  transform: translate(-50%, -50%) scale(1.08);
}

.yt-gallery-play::after {
  content: "";
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #5eebc8;
  margin-left: 4px;
  transition: border-color 0.25s ease;
}

.yt-gallery-card:hover .yt-gallery-play::after {
  border-color: transparent transparent transparent #084234;
}

.yt-gallery-info {
  padding: 1.25rem 1.35rem 1.5rem;
}

.yt-gallery-info .yt-gallery-video-title {
  color: #f1f1f4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.005em;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-gallery-info .yt-gallery-video-date {
  color: #7d7f8a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.yt-gallery-state {
  text-align: center;
  color: #c1c1c1;
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}

.yt-gallery-state a {
  color: #5eebc8;
}

.yt-gallery-skeleton {
  border-radius: 0.9rem;
  overflow: hidden;
  background-color: #101010;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.yt-gallery-skeleton .yt-gallery-thumb-wrap {
  cursor: default;
  background: linear-gradient(110deg, #101010 8%, #1c1c1c 18%, #101010 33%);
  background-size: 200% 100%;
  animation: yt-gallery-shimmer 1.4s linear infinite;
}

@keyframes yt-gallery-shimmer {
  to {
    background-position-x: -200%;
  }
}
