@charset "utf-8";
/* CSS Document */


.photo-gallery {
  max-width: 1000px;
  margin: auto;
  width: 100%;
}

.main-image {
  position: relative;
  width: 100%;
}

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

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}

.nav.left { left: 10px; }
.nav.right { right: 10px; }

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 1 !important;
}

.image-stack {
  width: 100%;
  max-width: 600px; /* optional max width */
  margin: 0 auto;   /* center container */
  padding: 10px;
  box-sizing: border-box;
}

.image-stack a {
  display: block;
  margin-bottom: 15px; /* space between images */
  text-decoration: none;
}

.image-stack img {
  width: 100%;      /* fill the container width */
  height: auto;     /* keep aspect ratio */
  display: block;   /* remove inline gap below images */
  border-radius: 8px; /* optional rounded corners */
  object-fit: cover;   /* crop if needed */
}

@media (max-width: 768px) {

  /* Hide main image and arrows on mobile */
  .main-image,
  .main-image .nav,
  #prev,
  #next {
    display: none !important;
  }

  /* Make thumbnail container stack images full-width */
  .thumbnails,
  #thumbnail-container {
    display: block !important;
  }

  /* Style mobile-stacked images properly */
  #thumbnail-container img {
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  object-fit: contain !important;
}
.thumbnails img {
  height: auto !important;
  width: 100% !important;
}
}
