#main-content {
  /*min-height: 100vh;*/
  height: auto;
}

.justified-gallery-container {
  margin: 0 calc(50% - 50vw) 5vh;
}

.justified-gallery-container .justified-gallery {
  margin: 0 5vw;
}

.gallery-header {
  padding-top: 20px;
  transition: padding-top 0.3s ease;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.justified-gallery {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.gallery-row {
  display: flex;
  gap: 25px;
  width: 100%;
  margin-bottom: 25px;
}

.gallery-row:last-child {
  margin-bottom: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  display: flex;
  align-items: center;
}

.gallery-item.loaded {
  animation: zoomInImage 0.6s ease forwards;
}

@keyframes zoomInImage {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-icon {
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-icon {
  transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 95vw;
  height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease;
  pointer-events: none;
}

/* When no thumbnails, use more height */
.lightbox:not(:has(.lightbox-thumbnails)) .lightbox-content {
  height: 90vh;
}

.lightbox-image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-content img {
  max-width: 95vw;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
  opacity: 1;
  object-fit: contain;
  pointer-events: none;
}

/* When no thumbnails, allow images to be larger */
.lightbox:not(:has(.lightbox-thumbnails)) .lightbox-content img {
  max-height: 90vh;
}

.lightbox-content img:nth-child(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.lightbox-content img.show {
  opacity: 1;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1001;
  pointer-events: auto;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  line-height: 55px;
  color: white;
  font-size: 50px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.3s ease;
  z-index: 1001;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 0;
  display: none;
  pointer-events: auto;
}

.lightbox-nav.positioned {
  display: block;
  opacity: 0.8;
}

.lightbox-nav.positioned:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.lightbox-thumbnails {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  z-index: 1002;
}

@media (max-width: 1023px) {
  .lightbox-thumbnails {
    display: none !important;
  }

  /* Use full height when thumbnails are hidden on small screens */
  .lightbox-content {
    height: 90vh !important;
  }

  .lightbox-content img {
    max-height: 90vh !important;
  }
}
.lightbox-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail {
  height: 80px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.lightbox-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.lightbox-thumbnail.active {
  border-color: white;
}

.lightbox-thumbnail img {
  height: 100%;
  width: auto;
  display: block;
}

/* Fullscreen inline gallery mode */
.fullscreen-gallery {
  display: none;
}

.fullscreen-gallery .back.small a {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  z-index: 100;
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .fullscreen-gallery .back.small {
    display: none;
  }
}
.fullscreen-gallery .back.large {
  display: none;
  z-index: 100;
  pointer-events: auto;
}

/*@media (min-width: 1280px) {*/
.fullscreen-gallery .back.large {
  display: block;
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  text-align: center;
}

/*}*/
.fullscreen-gallery.active {
  display: flex;
  flex-direction: column;
  position: relative;
  /*position: absolute;*/
  z-index: 1;
  top: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  bottom: 0;
  border-radius: 0;
}

.fullscreen-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 400px;
  height: auto;
  pointer-events: none;
  max-height: 100vh;
  overflow: hidden;
  border-radius: 0;
}

.fullscreen-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.4s ease;
  opacity: 1;
  pointer-events: none;
}

.fullscreen-image-container img#fullscreen-img-next {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

.fullscreen-image-container img#fullscreen-img-next.show {
  opacity: 1 !important;
}

.fullscreen-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 38px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  text-align: center;
  z-index: 10;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 50%;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

/* Smaller screens - smaller circles */
@media (max-width: 768px) {
  .fullscreen-nav {
    background: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    font-size: 32px;
    line-height: 33px;
  }
}
/* Medium screens */
@media (min-width: 769px) and (max-width: 1279px) {
  .fullscreen-nav {
    background: rgba(0, 0, 0, 0.3);
    width: 45px;
    height: 45px;
    font-size: 42px;
    line-height: 40px;
  }
}
/* Large screens */
@media (min-width: 1280px) {
  .fullscreen-nav {
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    font-size: 45px;
    line-height: 44px;
  }
}
.fullscreen-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.15);
}

.fullscreen-prev {
  left: 20px;
}

.fullscreen-next {
  right: 20px;
}

.fullscreen-thumbnails {
  padding: 30px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.fullscreen-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.fullscreen-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.fullscreen-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.fullscreen-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.fullscreen-thumbnail {
  height: 80px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.fullscreen-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.fullscreen-thumbnail.active {
  border-color: white;
}

.fullscreen-thumbnail img {
  height: 100%;
  width: auto;
  display: block;
}

@media (max-width: 1023px) {
  .fullscreen-thumbnails {
    display: none;
  }

  .fullscreen-image-container {
    /*height: calc(100vh - 200px);*/
    min-height: 300px;
    align-items: self-start;
  }
}
@media (max-width: 768px) {
  .gallery-container {
    padding: 10px;
  }

  .gallery-title {
    font-size: 24px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/*# sourceMappingURL=full-screen-gallery.css.map */
