
body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #1a1a1a;
  color: #f0f0f0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.video-gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.video-intro {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: #ccc;
  text-align: center;
  padding: 1rem 1.25rem;
  border: 1px solid #333;
  background: #141414;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.video-intro p {
  margin: 0 0 0.75rem 0;
}

.page-tip {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #2a2a2a;
  background: #101010;
  border-radius: 8px;
  color: #ddd;
  display: inline-block;
  text-align: left;
}

.video-intro .page-tip {
  background: transparent;
  border: 0;
  padding: 0.5rem 0;          
  display: block;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #2a2a2a;
}

.page-tip strong {
  color: #fff;
}

.video-intro .intro-logo {
  width: 64px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem auto;
  opacity: 0.95;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-header {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  margin-top: 4rem;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.video-project {
  margin-bottom: 4rem;
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.project-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 800px;
}

.project-roles {
  display: block;
  margin-top: 0.2rem;
  margin-left: 0;
}

@media (max-width: 600px) {
  .project-title {
    font-size: 1.5rem;
  }

  .project-description {
    font-size: 0.95rem;
  }
}

.media-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.media-row img {
  transition: opacity 0.3s ease;
}

.media-row img:hover {
  opacity: 0.8;
}

.media-container.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.media-container.grid-3 a {
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.media-container.grid-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.media-container.grid-3 img:hover {
  opacity: 0.8;
}

.project-date {
  font-size: 0.9rem;
  color: #888;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.project-laurels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

.project-laurels img {
  height: 106px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .project-laurels img {
    height: 79px;
  }
}

header {
  background-color: #111;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto 1fr;
  column-gap: 1.25rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  position: static;
  left: auto;
  transform: none;
  min-width: 0;
  justify-self: center;
  grid-column: 4;
}

nav ul.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
}

nav ul.nav a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  padding: 0.5rem;
  display: block;
}

nav ul.nav a:visited {
  color: #eee;
}

.nav-contact {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  padding: 0.5rem;
  display: block;
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
  justify-self: start;
  grid-column: 6;
}

.nav-contact:visited {
  color: #eee;
}

nav ul.nav > li > a {
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

nav ul.nav > li > a:hover,
nav ul.nav > li > a:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

nav ul.nav > li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

.nav-contact:hover,
.nav-contact:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

.nav-contact:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title contact"
      "nav nav";
    row-gap: 0.75rem;
    column-gap: 1rem;
  }

  .header-sep {
    display: none;
  }

  header h1 {
    grid-area: title;
    justify-self: start;
  }

  nav {
    grid-area: nav;
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }

  .nav-contact {
    grid-area: contact;
    justify-self: end;
    grid-column: auto;
  }

  nav ul.nav {
    justify-content: flex-start;
  }
}

header h1 {
  margin: 0;
  font-size: 1rem;
  justify-self: end;
  grid-column: 2;
}

.header-sep {
  color: #555;
  font-weight: 600;
  line-height: 1;
  margin: 0 0.5rem;
  user-select: none;
}

.header-sep-left {
  grid-column: 3;
}

.header-sep-right {
  grid-column: 5;
}

header h1 a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

header h1 a:visited,
header h1 a:hover,
header h1 a:focus {
  color: #ffffff;
  text-decoration: none;
}

header h1 a:hover,
header h1 a:focus {
  transform: translateY(-2px) scale(1.08);
  outline: none;
}

header h1 a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

footer {
  background-color: #000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
}

a {
  color: #eee;
  text-decoration: none;
}

a:visited {
  color: #eee;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

.media-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.media-row.single-media {
  flex-direction: column;
  gap: 0.5rem;
}

.media-row.single-media .media-block {
  flex: none;
  width: 100%;
}

.media-block {
  flex: 1 1 48%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-block.media-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.media-block.media-embed:hover::after {
  opacity: 0;
}

.media-block.media-embed:hover,
.media-block.media-embed:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  display: block;
  background-color: #000;
}

.media-block iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  display: block;
}

.watch-video-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.watch-video-btn__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.watch-video-btn:hover,
.watch-video-btn:focus {
  background: rgba(0, 0, 0, 0.85);
}

.watch-video-btn:active {
  transform: translateY(1px);
}

.watch-video-inline {
  display: inline-block;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .media-block.media-embed::after {
    transition: none;
  }
}

.watch-video-inline:hover,
.watch-video-inline:focus {
  text-decoration: underline;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
}

.video-modal.open {
  display: block;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.video-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.video-modal__frame {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lb-data .lb-details .lb-watch-video {
  color: #eee;
  font-weight: 600;
  text-decoration: none;
}

.lb-data .lb-details .lb-watch-video:hover,
.lb-data .lb-details .lb-watch-video:focus {
  text-decoration: underline;
}

.lb-data .lb-details .lb-sep {
  margin: 0 0.5rem;
  opacity: 0.7;
}

header {
  background-color: #111;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  position: static;
  left: auto;
  transform: none;
  min-width: 0;
}

header h1 {
  display: none;
}

.header-sep,
.header-sep-left,
.header-sep-right,
.nav-contact {
  display: none;
}

nav ul.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

nav ul.nav li.nav-sep {
  color: #555;
  font-weight: 600;
  user-select: none;
}

nav ul.nav a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  padding: 0.5rem;
  display: block;
}

nav ul.nav a:visited {
  color: #eee;
}

nav ul.nav > li > a {
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

nav ul.nav > li > a:hover,
nav ul.nav > li > a:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

nav ul.nav > li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
  }

  nav ul.nav {
    flex-wrap: wrap;
  }
}
