/* =========================
   BASE RESET
========================= */
* {
  margin: 0;
  padding: 0;
  font-family: monospace;
  text-decoration: none;
  box-sizing: border-box;
  background-color: black;
}

/* =========================
   LAYOUT GRID
========================= */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 75%;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
}

/* optional full width spans */
.large {
  grid-column: span 2;
}

/* =========================
   LOGO
========================= */
.logo {
  text-align: center;
}

.logo-image {
  padding-top: 3%;
  max-width: 150px;
  height: auto;
}

.award-image {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 60px;   /* fixed size = stable */
  height: auto;

  z-index: 5;
  pointer-events: none;
}

/* =========================
   VIDEO CONTAINER (CORE FIX)
========================= */

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: black;
}

.video-wrapper.film .video-container {
  aspect-ratio: 2.39 / 1;
}

/* =========================
   THUMBNAIL
========================= */
.thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 2;
  transition: opacity 0.25s ease;
}

/* fade thumbnail on hover */
.video-container:hover .thumbnail {
  opacity: 0;
}

/* =========================
   IFRAME (UNIFIED VIMEO + YOUTUBE)
========================= */
.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  border: none;
  z-index: 1;

  opacity: 0;
  transition: opacity 0.25s ease;

  pointer-events: none; /* keeps click-through to link */
}

/* fade video in on hover */
.video-container:hover .video-embed {
  opacity: 1;
}

/* IMPORTANT: remove global iframe styling conflicts */
iframe {
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   CAPTIONS
========================= */
.video-caption {
  margin-top: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
}

/* =========================
   OVERLAY (optional hover text)
========================= */
.video-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.7);
  opacity: 0;

  z-index: 3;
  transition: opacity 0.2s ease;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

/* 3D videos must NOT use iframe styling */
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   TABS
========================= */
.tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 10px 0 30px;
}

.tab-link {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: rgb(178, 108, 243);
  cursor: pointer;

  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.tab-link:hover {
  opacity: 0.7;
}

.tab-link.active {
  opacity: 1;
  font-weight: bold;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* =========================
   FOOTER
========================= */
.footer {
  width: 100%;
  height: 30px;
}

/* =========================
   MOBILE (iPhone fix)
========================= */
@media (max-width: 600px) {

  .grid-container {
    grid-template-columns: 1fr;
    max-width: 95%;
  }

  .logo-image {
    max-width: 90px;
  }

  .video-caption {
    font-size: 12px;
  }

  .tab-link {
    font-size: 12px;
  }
}