@charset "UTF-8";
/* ==========================================================================
   #ROOT VARIABLES
   ========================================================================== */
/* Colors */
/**
 * Image Caption Block Styles
 */
.image-caption-block {
  margin-bottom: 0;
  max-width: 100%;
}

.image-caption-block .image-container {
  position: relative;
  width: 100%;
  /* Create 16:9 aspect ratio container */
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #f5f5f5;
  margin-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.image-caption-block .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-caption-block .image-container img:hover {
  transform: scale(1.02);
}

.image-caption-block .caption-container {
  background-color: #f7f8f9;
  padding: 0.75rem 1rem;
  border-radius: 0 0 4px 4px;
  font-family: "Source Sans Pro", sans-serif;
}

.image-caption-block .image-description {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-family: "Source Sans Pro", sans-serif;
}

.image-caption-block .photographer-info {
  font-size: 1rem;
  font-style: italic;
  color: #666;
  font-family: "Source Sans Pro", sans-serif;
  display: block;
  margin-top: 0.25rem;
}

.image-caption-block .no-image {
  padding: 2rem;
  background-color: #f8f9fa;
  text-align: center;
  border-radius: 4px;
  font-family: "Source Sans Pro", sans-serif;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .image-caption-block .caption-container {
    padding: 0.5rem 0.75rem;
  }
  .image-caption-block .image-description {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
  }
  .image-caption-block .photographer-info {
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
  }
}
/* Lightbox overlay styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  content-visibility: auto;
  contain-intrinsic-size: 1px;
  min-width: 1px;
  min-height: 1px;
}

.caption-wrapper {
  text-align: center;
}

.lightbox-caption {
  color: #ffffff;
  text-align: center;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  font-weight: 300;
  font-family: "Source Sans Pro", sans-serif;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .lightbox-caption {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}
@media (max-width: 576px) {
  .lightbox-caption {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.image-caption {
  margin: 0;
}
.image-caption .image-caption__frame {
  position: static;
  width: 100%;
  display: block;
}
.image-caption .image-caption__media {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh !important;
  object-fit: unset !important;
  object-position: initial !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.image-caption .image-caption__media.is-landscape,
.image-caption .image-caption__media.force-landscape {
  width: 100%;
  height: auto;
  max-width: 100%;
}
.image-caption .image-caption__media.is-portrait,
.image-caption .image-caption__media.force-portrait {
  object-fit: contain;
  width: auto;
  height: 100%;
  max-height: 80vh !important;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
.image-caption .image-caption__caption {
  padding: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  background-color: #fafafa;
  box-sizing: border-box;
}
.image-caption.is-portrait .image-caption__caption {
  text-align: left;
}
.image-caption.is-portrait .image-caption__caption .image-description,
.image-caption.is-portrait .image-caption__caption .photographer-info {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.image-caption.is-landscape .image-caption__caption {
  width: auto;
}

/* Nur für Portrait-Bilder: Figure-Inhalt zentrieren */
figure.image-caption.is-portrait {
  text-align: center;
}

/* Bild: immer responsiv und proportional */
figure.image-caption.is-portrait .image-caption__media {
  display: block;
  max-width: 100%;
  height: auto; /* Seitenverhältnis wahren */
  margin: 0 auto; /* Bild selbst zentriert */
}

/* Caption: die Breite wird per JS gesetzt; hier nur Umbruch-Regeln */
figure.image-caption.is-portrait .image-caption__caption {
  display: block;
  margin: 0 auto 0;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  /* width wird durch JS pixelgenau gesetzt; hier NICHT festlegen */
}
