:root {
  --imax-max-width: 1100px;
  --imax-panel-bg: rgba(9, 9, 9, 0.55);
  --imax-border: rgba(255, 255, 255, 0.12);
  --imax-accent: #7fd2ff;
}

body {
  background-color: #040404;
  color: #f5f5f5;
}

.imax-theme .nav-divider {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.imax-theme .primary-nav a {
  color: #fff;
}

.imax-theme .primary-nav a:hover::after,
.imax-theme .primary-nav a:focus-visible::after,
.imax-theme .primary-nav a[aria-current="page"]::after {
  background: #fff;
}


.imax-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem) 5rem;
}

.imax-page section {
  width: min(100%, var(--imax-max-width));
  margin-inline: auto;
}

.page-header {
  margin-bottom: 0.5rem;
  margin-left: clamp(1.5rem, 4vw, 4rem);
  margin-right: auto;
  width: min(100%, 1400px);
  transform: translateX(-2rem);
}

.page-header h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.2em;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.page-header .subheader {
  font-family: "headline-gothic-atf-rough-n1", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--imax-accent);
  margin: 0;
  max-width: 100%;
  white-space: nowrap;
  letter-spacing: 0.12em;
}

.content-grid {
  width: min(100%, 1600px);
  margin-left: clamp(1.5rem, 4vw, 4rem);
  margin-right: auto;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: -0.5rem;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: -2rem;
}

.overview-section {
  margin: 0;
}

.overview-text {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.9);
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.camera-systems-section {
  margin: 0;
  padding: 2rem 1.25rem;
  background-color: var(--imax-panel-bg);
  border-radius: 20px;
  border: 1px solid var(--imax-border);
}

.camera-systems-section h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  margin: 0 0 1.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--imax-accent);
  font-weight: 400;
}

.camera-systems-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: rgba(245, 245, 245, 0.85);
}

.camera-systems-section li {
  margin-bottom: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
}

.camera-systems-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--imax-accent);
  font-size: 1.2em;
  font-weight: bold;
}

.camera-systems-section li:last-child {
  margin-bottom: 0;
}

.video-section {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.8);
  margin: 0;
  text-align: center;
}

.hero-video {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video {
  transition: transform 0.3s ease;
}

.hero-video video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 2px solid var(--imax-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-video:hover video {
  transform: scale(1.08);
  box-shadow: 0 24px 80px rgba(127, 210, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.7);
  border-color: rgba(127, 210, 255, 0.4);
}

.fullscreen-video {
  cursor: pointer;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.fullscreen-overlay video {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: 1rem;
  transform: scale(1.1);
  transform-origin: top left;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--imax-panel-bg);
  border: 1px solid var(--imax-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.slideshow-container:hover {
  transform: scale(1.08);
  box-shadow: 0 24px 80px rgba(127, 210, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.7);
  border-color: rgba(127, 210, 255, 0.4);
}

/* Disable hover effect in fullscreen */
.fullscreen-overlay .fullscreen-slideshow:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

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

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: none;
}

.slide.active {
  opacity: 1;
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 32px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-weight: 300;
  line-height: 1;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.slide-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

/* Fullscreen slideshow - using overlay approach like video */
.fullscreen-overlay .fullscreen-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay .fullscreen-slideshow .slideshow-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay .fullscreen-slideshow .slides {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay .fullscreen-slideshow .slide {
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: 0;
}

.fullscreen-overlay .fullscreen-slideshow .prev,
.fullscreen-overlay .fullscreen-slideshow .next {
  width: 60px;
  height: 60px;
  font-size: 40px;
  z-index: 10002;
}

.fullscreen-overlay .fullscreen-slideshow .prev {
  left: 30px;
}

.fullscreen-overlay .fullscreen-slideshow .next {
  right: 30px;
}

.fullscreen-overlay .fullscreen-slideshow .slide-counter {
  z-index: 10002;
}

.close-slideshow {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 300;
  width: 45px;
  height: 45px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  line-height: 1;
  padding: 0;
}

.slideshow-container.fullscreen .close-slideshow {
  display: flex;
}

.close-slideshow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .imax-page {
    padding: 2rem 1.25rem 4rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .overview-text {
    max-width: 100%;
  }

  .slideshow-container {
    aspect-ratio: 16 / 9;
  }

  .camera-systems-section {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .page-header .subheader {
    white-space: normal;
    font-size: 0.9rem;
  }
}

