/* Main container */
.srp-hover-boxes-container {
  font-family: 'Anton', sans-serif;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  justify-content: center;
  align-items: center;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.srp-hover-boxes-container::-webkit-scrollbar {
  height: 6px;
}

.srp-hover-boxes-container::-webkit-scrollbar-track {
  background: transparent;
}

.srp-hover-boxes-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
}

/* Individual box */
.srp-hover-box {
  flex: 0 0 auto;
  width: 150px;
  height: 400px;
  position: relative;
}

.srp-hover-box-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.srp-hover-box-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.srp-hover-box-title-inside {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 15px;
  text-align: center;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.5em;
}

.srp-hover-box-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.srp-hover-box-content {
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
}

.srp-hover-box:hover .srp-hover-box-overlay {
  opacity: 1;
}

.srp-hover-box:hover .srp-hover-box-title {
  display: none;
}

/* View Gallery Button */
.srp-view-gallery-btn {
  margin-top: 20px;
  padding: 10px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.srp-view-gallery-arrow {
  margin-left: 10px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.srp-view-gallery-btn:hover .srp-view-gallery-arrow {
  transform: translateX(5px);
}

/* Lightbox Styles */
.srp-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.srp-lightbox-content {
  width: 100%;
  position: relative;
  height: 100vh;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.srp-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}

.srp-lightbox-main-image {
  width: 100%;
  height: 70vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}

.srp-lightbox-thumbnails {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.srp-lightbox-thumbnails img {
  cursor: pointer;
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.srp-lightbox-thumbnails img:hover {
  opacity: 1;
}

/* Navigation arrows */
.srp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.srp-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.srp-lightbox-prev {
  left: 20px;
}

.srp-lightbox-next {
  right: 20px;
}

/* Adjust main image when thumbnails are hidden */
.srp-lightbox-thumbnails:empty {
  display: none;
}

.srp-lightbox-thumbnails:empty + .srp-lightbox-main-image {
  height: 90vh;
}

.srp-lightbox-thumbnails img.active {
  opacity: 1;
  border: 2px solid white;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .srp-hover-boxes-container {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .srp-hover-box {
    width: calc(25% - 12px);
  }
}

@media (max-width: 767px) {
  .srp-hover-box {
    width: calc(50% - 8px);
  }
}
