
.animated-slider {
  width: 100%;
  padding-top: 0px;
  background-color: #000;
  line-height: 1.5;
}

.film-slider-container {
  background-color: transparent;
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}




.film-slide {
  display: none;
  text-align: center;
  animation: fadeZoom 1s ease forwards;
}

.film-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  animation: fadeZoom 1s ease forwards;
}


/* === Style Text === */
.caption {
  width: 45%;
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: #353535;
  padding: 30px;
  border-radius: 15px
}


.caption .slide-poster-title {
  color: #f0c14b;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1s ease forwards;
   text-shadow: 2px 2px #000000;
}

.caption .slide-poster-subtitle {
  font-size: 1rem;
  margin-top: 15px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.5s;
  font-weight: bold;
  text-align: right;
  text-shadow: 2px 2px #000000;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Responsive === */

@media screen and (min-width: 1024px) and (max-width: 1440px){
  .film-slide img{
    padding-top: 20px;
  }

  .caption .slide-poster-title {
    font-size: 1.2rem;
  }

  .caption .slide-poster-subtitle {
    font-size: 1rem;
  }

}

@media (max-width: 1024px) {

  .caption .slide-poster-title {
    font-size: 2rem;
  }

  .caption .slide-poster-subtitle {
    font-size: 1rem;
  }
}


@media (max-width: 768px) {

   .caption .slide-poster-title {
    width: 100%;
    font-size: .7rem;
    
  }

  .caption .slide-poster-subtitle {
    width: 100%;
    font-size: 0.5rem;
    margin-top: 5px;
  }

  .caption {
    width: 38%;
    top: 60%;
    bottom: 15%;
    left: 35%;
    right: 5%;
  }

  .film-slide img {
    padding-top: 55px;
  }


}



@media (max-width: 480px) {

    .caption .slide-poster-title {
    width: 100%;
    font-size: .5rem;
    margin-top: -12px;
    
  }

  .caption .slide-poster-subtitle {
    width: 100%;
    font-size: 0.3rem;
    margin-top: 5px;
  }

  .caption {
    width: 38%;
    top: 60%;
    bottom: 10%;
    left: 35%;
    right: 5%;
  }

  .film-slide img {
    padding-top: 55px;
  }

}


.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
}

.nav.prev {
  left: 10px;
}
.nav.next {
  right: 10px;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}





/* General section styling */
/* Section Container */
.historical-section {
  background-color: #ffffff;
  background-image: url("../Images/subtle-grunge.png");
  color: #222;
  line-height: 1.8;
  padding: 2rem 4rem;
  margin: 2rem auto;
  max-width: 1315px;
  border-left: 10px solid #a1744d;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 100px;
  font-family: sans-serif;
}

.historical-section p{
 text-shadow: 2px 2px 4px rgb(0 0 0 / 22%);
 text-align: justify;
}


/* Flex Layout for Image + Text */
.content-block {
  display: flex;
  align-items: stretch;
  margin-bottom: 3rem;
  margin-top: 1rem;
  gap: 50px;
}

/* Left/Right alternating alignment */
.left-align {
  flex-direction: row;
}

.right-align {
  flex-direction: row-reverse;
}

/* Image inside content block */
.content-block img {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.3s;
}

/* Image hover effect */
.content-block img:hover {
  transform: scale(1.01);
}

/* Paragraph in flex layout */
.content-block p {
  flex: 1;
  margin: 0;
  color: #000000f5;
  text-shadow: 2px 2px 4px rgb(0 0 0 / 22%);
  font-size: 1.05rem;
  text-align: justify;
}

/* Section-wide full-width images (optional) */
.historical-section img:not(.content-block img) {
  width: 100%;
  height: 550px;
  border-radius: 10px;
  border: 8px solid #2d2d2d;
  filter: grayscale(100%);
  transition: transform 0.3s;
}

.historical-section img:not(.content-block img):hover {
  transform: scale(1.01);
}

/* Headings */
.historical-section h2,
.historical-section h3 {
  color: #a1744d;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgb(0 0 0 / 16%);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.historical-section h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #a1744d;
  padding-bottom: 0.3rem;
  text-align: center;
}

.historical-section h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* List Styling */
.historical-section ul {
  color: #000000f5;
  text-shadow: 2px 2px 4px rgb(0 0 0 / 22%);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.historical-section ul li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.historical-section ul li::before {
  content: "•";
  color: #7b4c28;
  position: absolute;
  left: 0;
  top: 0;
}

/* Citations */
.historical-section .citation {
  font-style: italic;
  font-size: 0.95rem;
  color: #5a4b3a;
  background-color: #ddc794;
  border-left: 4px solid #a1744d;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  text-align: right;
}

.citation a {
  text-decoration: none;
  color: #392f25;
}

/* Emphasis */
em {
  font-style: italic;
  color: #333;
  font-weight: 500;
  background-color: #f3ddb0;
  padding: 4px 8px;
  border-left: 3px solid #ffab00;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .historical-section {
    padding: 20px;
    margin-top: 0rem;
  }


.historical-section img:not(.content-block img) {
  height: auto;
}


  .historical-section h2 {
    font-size: 1.25rem;
  }

  .historical-section h3 {
    font-size: 1rem;
    margin-top: 10px;
  }

  .historical-section p {
    font-size: 0.9rem;
  }

  .content-block {
    flex-direction: column !important;
    gap: 0px;
  }

  .content-block img {
    max-width: 100%;
    height: auto;
  }
}
