/* Card-Based Image Slider Styles - Mobile First */

.card-slider-container {
  position: relative;
  margin: 1rem auto 0;
  min-height: 60vh;
  overflow: hidden;  
  max-height: 100vh; /* Limits height to viewport height */
  border-radius: 12px;
  max-width: 96%;
  box-sizing: border-box;
}

.slider-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.slider-card.active {
  opacity: 1;
  position: relative;
}

/* Image wrapper within card */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 62vh;
  max-height: 62vh;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrapper img {
  max-width: 96%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Card information section */
.card-info {
  width: 100%;
  padding: 1rem 0.5rem;
  text-align: center;
  background: transparent;
  box-sizing: border-box;
}

.artwork-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #333;
  line-height: 1.4;
}

.artwork-details {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  
}

.detail-item {
  display: block;
}

@media (orientation: landscape) {
  .card-slider-container {
    max-height: 80vh;
    margin-top: 0;
  }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .card-slider-container {
    height: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
  }

  .card-info {
    padding: 1.25rem 1rem;
  }

  .artwork-title {
    font-size: 1.25rem;
  }

  .artwork-details {
    font-size: 0.9375rem;
    flex-direction: column;
    justify-content: center;
  }

  
}

/* Desktop screens */
@media (min-width: 1024px) {
  .card-slider-container {
    max-width: 650px;
    margin: 5rem auto 0;
    height: 100vh;
    
  }
  /*position: relative;
  margin: 0 auto;
  min-height: 60vh;
  overflow: hidden;
  border-radius: 12px;
  max-width: 96%;
  box-sizing: border-box;*/

  .card-image-wrapper {
    height: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    
  }

  .slider-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .card-info {
    padding: 1.5rem 1rem;
  }

  .artwork-title {
    font-size: 1.5rem;
  }

  .artwork-details {
    font-size: 1rem;
  }
}


