/**
 * Museum Slider Styles
 */

.museum-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.museum-slider-wrapper {
  position: relative;
  width: 100%;
}

.museum-slider-container {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.museum-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;

  gap: 24px;
  transform: translateX(100%);
}

.museum-slider.initialized .museum-slide {
  transition: transform 0.5s ease-in-out;
}

.museum-slide.active {
  position: relative;
  transform: translateX(0);
}

.museum-slide.prev {
  transform: translateX(-100%);
}

.museum-slide-image {
  flex: 0 0 60%;
  max-width: 60%;
  height: 60vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.museum-slide-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.museum-slide-content {
  flex: 0 0 40%;
  max-width: 40%;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-sizing: border-box;
}

.museum-slide-title {
  font-family: ct_font_swizzy, sans-serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: 0%;
  margin: 0 0 20px 0;
  color: #000000;
  text-transform: uppercase;
}

.museum-slide-description {
  font-family: ct_font_swizzy, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0%;
  margin: 0 0 30px 0;
  padding-top: 0.25em;
  color: #333333;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.museum-slide-description p {
  margin: 0 0 15px 0;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.museum-slide-description p:last-child {
  margin-bottom: 0;
}

.museum-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 107px;
  height: 26px;
  padding: 4px 10px;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: background-color 0.3s ease;
  opacity: 1;
}

.museum-slide-button:hover {
  background: #333333;
  color: #ffffff;
}

/* Navigation Controls */
.museum-slider-controls {
  position: absolute;
  bottom: 0;
  left: calc(60% + 10px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.museum-slider-prev,
.museum-slider-next {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: opacity 0.3s ease;
}

.museum-slider-prev:hover,
.museum-slider-next:hover {
  opacity: 0.7;
}

.museum-slider-prev:disabled,
.museum-slider-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.museum-slider-pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
}

.current-slide {
  font-weight: 700;
}

.slide-separator {
  font-weight: 400;
}

.total-slides {
  font-weight: 400;
  opacity: 0.6;
}

/* Placeholder for editor */
.museum-slider-placeholder {
  padding: 40px;
  text-align: center;
  background: #f5f5f5;
  border: 2px dashed #cccccc;
  border-radius: 4px;
}

.museum-slider-placeholder p {
  margin: 0;
  color: #666666;
  font-size: 16px;
}

/* Responsive Styles */

/* Large Desktop Screens */
@media (min-width: 1920px) {
  .museum-slide-image {
    height: 65vh;
    min-height: 600px;
    max-height: 900px;
  }
}

/* Extra Large Desktop Screens */
@media (min-width: 2560px) {
  .museum-slide-image {
    height: 70vh;
    min-height: 700px;
    max-height: 1000px;
  }
}

/* Standard Desktop */
@media (min-width: 1025px) and (max-width: 1919px) {
  .museum-slide-image {
    height: 55vh;
    min-height: 500px;
    max-height: 750px;
  }
}

@media (max-width: 1024px) {
  .museum-slide-content {
    padding: 16px 20px;
  }

  .museum-slide-title {
    font-size: 36px;
  }

  .museum-slide-image {
    height: auto;
    min-height: 400px;
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .museum-slide {
    flex-direction: column;
    gap: 0px;
  }

  .museum-slide-image,
  .museum-slide-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .museum-slide-image {
    height: auto;
    min-height: auto;
    max-height: 275px;
  }

  .museum-slide-image img {
    max-height: 275px;
  }

  .museum-slide-content {
    padding: 16px 20px;
  }

  .museum-slide-title {
    font-family: ct_font_swizzy, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 110%;
    letter-spacing: 0%;
    text-transform: uppercase;
  }

  .museum-slider-controls {
    bottom: 13px;
    left: auto;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .museum-slide-title {
    font-size: 32px;
  }

  .museum-slide-description {
    font-size: 20px;
  }

  .museum-slider-controls {
    gap: 15px;
  }

  .museum-slider-pagination {
    font-size: 20px;
  }
}
