/* Slideshow fade-in animation */
.swiper {
  opacity: 0;
  animation: slideshow-fade-in 0.5s ease-out 0.2s forwards;
}

@keyframes slideshow-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom styles for the about page swiper */
.about-swiper {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin-bottom: 20px;
}

.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.swiper-slide-active .slide-caption {
  transform: translateY(0);
}

.caption-content {
  max-width: 800px;
  margin: 0 auto;
}

.caption-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.caption-description {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Swiper navigation styling - transparent arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important;
  width: 32px !important;
  height: 32px !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff !important;
  opacity: 0.7 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
}

/* Fraction pagination styling */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2px;
}

.swiper-pagination-current,
.swiper-pagination-total {
  position: static !important;
  left: auto !important;
}

/* Thumbnail swiper styling */
.about-swiper-thumbs {
  width: 100%;
  height: 50px;
  margin-top: 20px;
}

.about-swiper-thumbs .swiper-slide {
  width: auto;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Lightbox styles */
[lightbox-toggle] {
}

[lightbox-toggle]:after {
  position: absolute;
  content: url('data:image/svg+xml; utf8, ');
  height: 32px;
  width: 32px;
  bottom: 0;
  right: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.2s;
}

[lightbox-toggle]:hover:after {
  opacity: 1;
  filter: drop-shadow(2px 4px 6px black);
}

.c-lightbox {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  pointer-events: none;
  position: fixed;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.c-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.c-lightbox__container {
  width: 100%;
  height: 100%;
}

.c-lightbox__close {
  z-index: 999999;
  position: absolute;
  cursor: pointer;
  top: 1vh;
  right: 1vw;
  font-size: 30px;
  padding: 20px;
  color: white;
}

.c-lightbox__close:hover {
  color: red;
}

.c-lightbox .swiper-container {
  width: 100%;
  height: 100%;
}

.c-lightbox .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-lightbox .swiper-pagination {
  color: white;
}

.c-lightbox .swiper-button-next,
.c-lightbox .swiper-button-prev {
  color: white;
}

.c-lightbox .swiper-button-next:hover,
.c-lightbox .swiper-button-prev:hover {
  color: red;
}

.c-lightbox .swiper-button-next:after,
.c-lightbox .swiper-button-prev:after {
  font-size: 30px;
}

.c-lightbox__image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
  text-align: center;
}

.c-lightbox__image img {
  width: auto;
  height: auto;
  max-height: 95vh;
  max-width: 95vw;
  object-fit: contain;
}

/* Body overflow hidden for lightbox */
body.overflowHidden {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-swiper {
    height: 50vh;
    min-height: 300px;
  }
  
  .about-swiper-thumbs {
    height: 40px;
  }
  
  .slide-caption {
    padding: 1rem;
  }
  
  .caption-title {
    font-size: 1.2rem;
  }
  
  .caption-description {
    font-size: 0.9rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 28px !important;
    height: 28px !important;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }
}


/* Slideshow fade-in animation */
.swiper {
  opacity: 0;
  animation: slideshow-fade-in 0.5s ease-out 0.2s forwards;
}

@keyframes slideshow-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom styles for the default page swiper */
.default-swiper {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin-bottom: 20px;
}

.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.swiper-slide-active .slide-caption {
  transform: translateY(0);
}

.caption-content {
  max-width: 800px;
  margin: 0 auto;
}

.caption-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.caption-description {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Swiper navigation styling - transparent arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important;
  width: 32px !important;
  height: 32px !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff !important;
  opacity: 0.7 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
}

/* Fraction pagination styling */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2px;
}

.swiper-pagination-current,
.swiper-pagination-total {
  position: static !important;
  left: auto !important;
}

/* Thumbnail swiper styling */
.default-swiper-thumbs {
  width: 100%;
  height: 50px;
  margin-top: 20px;
}

.default-swiper-thumbs .swiper-slide {
  width: auto;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Lightbox styles */
[lightbox-toggle] {
}

[lightbox-toggle]:after {
  position: absolute;
  content: url('data:image/svg+xml; utf8, ');
  height: 32px;
  width: 32px;
  bottom: 0;
  right: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.2s;
}

[lightbox-toggle]:hover:after {
  opacity: 1;
  filter: drop-shadow(2px 4px 6px black);
}

.c-lightbox {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  pointer-events: none;
  position: fixed;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.c-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.c-lightbox__container {
  width: 100%;
  height: 100%;
}

.c-lightbox__close {
  z-index: 999999;
  position: absolute;
  cursor: pointer;
  top: 1vh;
  right: 1vw;
  font-size: 30px;
  padding: 20px;
  color: white;
}

.c-lightbox__close:hover {
  color: red;
}

.c-lightbox .swiper-container {
  width: 100%;
  height: 100%;
}

.c-lightbox .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-lightbox .swiper-pagination {
  color: white;
}

.c-lightbox .swiper-button-next,
.c-lightbox .swiper-button-prev {
  color: white;
}

.c-lightbox .swiper-button-next:hover,
.c-lightbox .swiper-button-prev:hover {
  color: red;
}

.c-lightbox .swiper-button-next:after,
.c-lightbox .swiper-button-prev:after {
  font-size: 30px;
}

.c-lightbox__image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
  text-align: center;
}

.c-lightbox__image img {
  width: auto;
  height: auto;
  max-height: 95vh;
  max-width: 95vw;
  object-fit: contain;
}

/* Body overflow hidden for lightbox */
body.overflowHidden {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .default-swiper {
    height: 50vh;
    min-height: 300px;
  }
  
  .default-swiper-thumbs {
    height: 40px;
  }
  
  .slide-caption {
    padding: 1rem;
  }
  
  .caption-title {
    font-size: 1.2rem;
  }
  
  .caption-description {
    font-size: 0.9rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 28px !important;
    height: 28px !important;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }
}
