body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
  min-height: 100vh;
}

/* Hero Section - Isolated from other components */
.hero-container {
  display: flex;
  min-height: 100vh;
  padding-left: 10rem;
  padding-top: 2rem;
  isolation: isolate; /* Creates new stacking context */
}

.hero-container .logo {
  position: absolute;
  top: 1rem;
  left: -3rem;
  height: 120px;
  width: auto;
  z-index: 10;
}

.hero-container .hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  position: relative;
  padding-top: 10rem;
}

.hero-container .hero-image .main-image {
  width: 110%;
  height: auto;
  max-height: 95vh;
  object-fit: contain;
  display: block;
  margin-left: 3rem;
}

.hero-container .hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 4rem 4rem 15rem;
  background-color: #fff;
}

/* Global heading styles */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  margin: 0 0 1.5rem 0;
  color: #000;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}

.view-button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.view-button:hover {
  background-color: #1a252f;
}

/* Gallery Section - Isolated and enlarged */
.gallery-header {
  padding: 2rem;
  text-align: center;
  background-color: #fff;
  isolation: isolate;
}

.gallery-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: #000;
  font-weight: normal;
}

.gallery-header .back-link {
  display: inline-block;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.gallery-header .back-link:hover {
  color: #1a252f;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 5px solid #000;
}

/* Gallery Slideshow Styles - Isolated and enlarged */
.slideshow-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  isolation: isolate;
  text-align: center;
}

.slideshow-container .slide {
  display: none;
  text-align: center;
}

.slideshow-container .slide:first-child {
  display: block;
}

.slideshow-container .slide-image {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border: 3px solid #000;
}

.slideshow-container .slide-caption {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.slideshow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

.prev-btn, .next-btn {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
  background-color: #1a252f;
}

.slide-counter {
  font-size: 1.3rem;
  color: #333;
  font-weight: 500;
}

/* Short Films Section - Isolated from other components */
.short-films-section {
  background-color: #1a3c5e;
  color: white;
  padding: 20rem 2rem 4rem 2rem;
  min-height: 100vh;
}

.short-films-section .section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 5rem;
  font-weight: normal;
  text-align: left;
  margin: -16rem 0 8rem 6rem;
  color: white;
  letter-spacing: 2px;
}

.short-films-section .films-container {
  max-width: 2800px;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  gap: 12rem;
  align-items: center;
  padding-left: 4rem;
  padding-right: 4rem;
  margin-bottom: 8rem;
}

.short-films-section .films-container:last-child {
  margin-bottom: 0;
}

.short-films-section .films-container-reversed {
  margin-left: 0rem;
  padding-left: 4rem;
  margin-top: 12rem;
}

.short-films-section .films-container-reversed .film-info {
  margin-top: -12rem;
  margin-right: 0rem;
  padding-left: 4rem;
}

.short-films-section .films-container:nth-child(3) {
  margin-top: 8rem;
}

.short-films-section .video-player {
  flex: 0 0 auto;
  max-width: 8000px;
}

.short-films-section .video-container {
  width: 600px;
  height: 340px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  position: relative;
}

.short-films-section .video-container iframe {
  transform: scale(1);
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

.short-films-section .film-info {
  flex: 1;
  min-width: 800px;
  max-width: 1200px;
  padding-left: 8rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: -8rem;
}

.short-films-section .film-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.1;
  color: white;
  margin: 0;
  letter-spacing: 1px;
}

.short-films-section .film-description {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  letter-spacing: 1px;
}

.short-films-section .film-credits {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-container {
    flex-direction: column;
    padding-left: 2rem;
    padding-top: 1rem;
  }
  
  .hero-container .logo {
    height: 80px;
    top: 0.5rem;
    left: -1rem;
  }
  
  .hero-container .hero-image {
    padding-top: 5rem;
  }
  
  .hero-container .hero-image .main-image {
    width: 90%;
    margin-left: -1rem;
    margin-top: 2rem;
  }
  
  .hero-container .hero-content {
    padding: 2rem 2rem 2rem 1rem;
    justify-content: flex-start;
    min-height: 40vh;
  }
  
  h1 {
    font-size: 3rem;
    margin: 1rem 0 1.5rem 0;
  }
  
  .view-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
  
  /* Gallery Mobile */
  .gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  /* Short Films Section Mobile */
  .short-films-section {
    padding: 8rem 1rem 2rem 1rem;
  }
  
  .short-films-section .section-title {
    font-size: 3rem;
    margin: -6rem 0 4rem 2rem;
  }
  
  .short-films-section .films-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 4rem;
  }
  
  .short-films-section .films-container:nth-child(3) {
    margin-top: 2rem;
  }
  
  .short-films-section .video-container {
    width: 100%;
    height: 250px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .short-films-section .video-container iframe {
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    border: none;
  }
  
  .short-films-section .film-info {
    padding-left: 0;
    min-width: auto;
    max-width: none;
    margin-top: 0;
  }
  
  .short-films-section .film-title {
    font-size: 2rem;
  }
  
  .short-films-section .film-description {
    font-size: 1.2rem;
  }
  
  .short-films-section .film-credits {
    font-size: 1rem;
  }
  
  .short-films-section .film-info {
    gap: 0.5rem;
  }
}