
.movies-breadcrumbs {
  margin-bottom: 30px;
}
/* movies home */
.movies-breadcrumbs {
  margin-bottom: 30px;
  display: none;
}
.movies .movie-gallery-container {
  position: relative;
    margin-bottom: 40px;
    text-align: center;
}
.movies .image-wrapper {
  position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movies .image-and-button-wrapper {
  position: relative;
}
.movies .button-container {
  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 100%;
    left: 0;
    margin: 0 auto;
    padding: 0;
    /* Add this */
}

.movies .movie-gallery-container a {
  font-size: 20px;
}

.movies .movie-gallery {
  overflow: hidden;
  z-index: 0;
  overflow: hidden;
  z-index: 0;
  padding: 0;
  margin: 0;
}

.movies .movie-images {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
}

.movies .movie-slide {
    flex: 0 0 20%;
    margin: 0;
    padding: 0;
    border: 1px solid white;
}
.movie-slide:last-child {
  margin-right: 0;
  /* Remove margin from last slide */
}

.movies .movie-slide img {
  width: 100%;
  height: 600px;
  /* Adjust image height */
  object-fit: cover;
}
.movie-link {
  background-color: #edeaea;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.movie-link a {
  text-decoration: none;
  color: #04228d;
  font-size: 18px;
}

.movie-link a:hover {
  color: #007bff;
  transition: color 0.3s ease;
}


.button-style {
  background-color: #FF0000;
  /* Red background */
  color: #FFFFFF;
  /* White font */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 800;
}

.button-disabled {
  background-color: #CCCCCC;
  /* Gray background */
  color: #666666;
  /* Dark gray font */
  cursor: not-allowed;
}

.movies-page .container-fluid{
  padding-left: 0;
  padding-right: 0;
}
/* Ensure the container is centered and overflow is hidden */
.container-movies .movie-gallery-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;overflow: visible;
  padding-top: 20px;
}

/* movie details */

.movie-details {
  padding: 20px;
  /* background-color: #fff; */
}

.movie-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.movie-overview {
  font-size: 16px;
  margin-bottom: 20px;
  color: #666;
}

.movie-details p {
  margin-bottom: 10px;
}

.movie-details strong {
  font-weight: bold;
  color: #333;
}





.videos-row {
    padding: 20px;
}
.videos-row.active {
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 25px;
}

/* Flex container to hold the slides */
.movie-gallery {
  display: flex;
  overflow: hidden;
  width: 100%;
}



.container-movies .movie-slide {
  flex: 0 0 25%;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  /* Added padding to prevent text overflow */
  max-width: 100%;
  /* Ensure no element exceeds container width */
  margin-bottom: 20px;
}

.container-movies .movie-slide:hover {
    transform: scale(1.05);
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
      z-index: 1;
      transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.container-movies .movie-slide p,
.container-movies .movie-slide h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
}



.container-movies .movie-slide:not(:hover) {
  transition: margin 0.3s ease;
}


iframe{
  width: 100%;
}



/* Styling for navigation buttons */
button.prev,
button.next {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

button.prev {
  left: 0;
}

button.next {
  right: 0;
}
button.disabled {
  opacity: 0.5;
  pointer-events: none;
  background-color: red !important;
}

button.prev.disabled,
button.next.disabled {
  background-color: red;
}
button.next.last-slide {
  background-color: red;
  opacity: 0.5;
  pointer-events: none;
}

button.next.last-slide,
button.next.disabled {
  background-color: red;
  opacity: 0.5;
  pointer-events: none;
}
/* Styling for navigation buttons */
button.prev,
button.next {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

button.prev {
  left: 0;
}

button.next {
  right: 0;
}

/* Styles for disabled buttons */
button.disabled {
  opacity: 0.5;
  pointer-events: none;
  background-color: red !important;
}

button.prev.disabled,
button.next.disabled {
  background-color: red;
}
/* Styling for navigation buttons */
button.prev,
button.next {
  background-color: rgb(242 7 7 / 80%);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  font-weight: 900;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

button.prev {
  left: 0;
}

button.next {
  right: 0;
}

button.disabled {
  opacity: 0.5;
  pointer-events: none;
  background-color: red !important;
}

button.prev.disabled,
button.next.disabled {
  background-color: red;
}

.movies-page .page-title {
  display: inline;
  color: #03087f;
}


.movie-videos {
  display: none;
}


 a.show-more-videos {
  text-decoration: none;
  font-size: larger;
  font-weight: 700;
}

span.clips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #dc3545;
  gap: 8px;
  padding: 10px 20px;
  color: white;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s ease;
}

span.clips i {
  margin-right: 8px;
}

span.clips:hover {
  background-color: #c82333;
  text-decoration: none;
}


.movies-breadcrumbs a.active {
  font-weight: bold;
}



.movies-breadcrumbs li {
  margin-right: 20px;
}


.tmdb-credit {
  text-align: center;
  font-size:  var(--font-size-s);
  color: #898484;margin-top: 30px;
}

.tmdb-credit img {
  width: 150px;
  height: auto;
  margin: auto;
  margin-bottom: 10px;
}
/* Desktop: 5 images per slide */
.movies .movie-slide {
  flex: 0 0 20%;
  /* 20% width means 5 images will fit in one row */
}

button:disabled {
  background-color: grey;
  color: black;
}

/* Tablet: 3 images per slide */
@media (max-width: 1024px) {
  .movies .movie-slide {
    flex: 0 0 33.33%;
    /* 33.33% width means 3 images will fit in one row */
  }
}

/* Mobile: 1 image per slide */
@media (max-width: 768px) {
  .movies .movie-slide {
    flex: 0 0 100%;
    /* 100% width means 1 image per slide */
  }
  .movie-gallery-container .movie-title{
    text-align:left;
  }
  .movies .movie-slide img {
    width: 100%;
    height: auto;
    /* Adjust image height */
    /* object-fit: cover; */
  }
}
@media (min-width: 768px) {
  .movies-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media only screen and (min-width: 992px) {
  .container-movies .movie-slide img {
    width:80%
  }
  .movie-image-wrapper {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;float: left;
  }
  .movie-gallery-container .col-md-8 {
        width: 66.66666667%;
    }  
  }
  
  @media only screen and (max-width: 992px) {
    .container-movies .movie-slide img {
      width: 100%
    }
  }