.gallery-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.main-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image-wrapper img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.prev-btn,
.next-btn {
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
}

.prev-btn { left: 0; position: absolute; }
.next-btn { right: 0; position: absolute; }

.thumbnail-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb.active {
  opacity: 1;
  border-color: #007bff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  padding: 20px;
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 90%;
  margin: auto;
  flex-wrap: wrap;
}

.modal-image-wrapper {
  position: relative;
  max-width: 100%;
}

.modal-image-wrapper img {
  width: auto;
  max-width: 100%;
  display: block;
  margin: auto;
  border-radius: 10px;
}

.ad-unit-fullscreen {
  margin-top: 10px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  background: #222;
  padding: 10px;
  border-radius: 6px;
}

.modal-thumbnails {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
}

.modal-thumb.active {
  border-color: #f9d665;
  opacity: 1;
}

.close {
  position: absolute;
  top: 10px; right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-nav {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.modal-nav.prev-btn { left: 10px; }
.modal-nav.next-btn { right: 10px; }

