.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    margin: auto;
    overflow: hidden;
    background: #000;
  }
  
  .slide {
    display: none;
    width: 100%;
    height: 100%;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 3px 3px 0;
  }
  
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  .prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .dots {
    text-align: center;
    padding: 10px;
  }
  
  .dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .active, .dot:hover {
    background-color: #717171;
  }

#pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: #000;
  border-radius: 4px;
}

#pause-btn svg {
  width: 24px;
  height: 24px;
  fill: #444;
}

.caption {
  color: #fff;
  font-size: 1rem;
  padding: 8px 16px;
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.pause-btn {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 1.1rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #333;
}

/* Mini slideshows inside photo-blocks */
.photo-block .slideshow-container {
  max-width: 600px;         /* adjust width as needed */
  aspect-ratio: 6 / 12;      /* or 1 / 1 for square, etc. */
  margin: auto;
}

#physical .photo-block .slideshow-container {
  max-width: 600px;         /* adjust width as needed */
  aspect-ratio: 3 / 4;      /* or 1 / 1 for square, etc. */
  height: auto;
  margin: auto;
}

#residential .photo-block .slideshow-container {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  margin: auto;
  overflow: hidden;
  background: #000;
}

#residential .photo-block .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ensures images scale uniformly without being cropped */
  display: block;
}

#celebration .photo-block .slideshow-container {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 3 / 4;
  max-height: 500px;
  margin: auto;
  overflow: hidden;
  background: #000;
}

#celebration .photo-block .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ensures images scale uniformly without being cropped */
  display: block;
}