/* ================================
   interior-gallery.css (CLEAN + Embla)
   Galerie Subpage – Filmstrip
   ================================ */

/* --------------------------------
   Filmstrip-Höhe (zentral steuerbar)
--------------------------------- */
:root{
  --rail-h: clamp(55vh, 63vh, 78vh);
  --caption-bg: rgba(255,255,255,0.4); /* ✅ Transparenz hier steuern (0.5–0.75) */
}

/* --------------------------------
   Grundlayout
--------------------------------- */
.gallery-page{
  min-height: 100vh;
  background: #000;
  overflow: visible;
}

.gallery-head{
  padding-bottom: 12px;
}

.gallery-slider{
  position: relative;
  width: 100%;
}

/* =========================================
   EMBLA CORE (wichtig)
   ========================================= */

/* Viewport = Maske */
.embla__viewport{
  overflow: hidden;
  width: 100%;
  padding-bottom: 0.5px; /* ✅ Clip-Fix (dein Edit) */
}

/* Container wird per transform bewegt */
.embla__container{
  display: flex;
  gap: 0;                 /* ✅ keine Abstände */
  will-change: transform;
}

/* Slides: feste Höhe, variable Breite */
.embla__slide{
  flex: 0 0 auto;
  height: var(--rail-h);
  width: auto;
}

/* --------------------------------
   Slide Basis
--------------------------------- */
.gallery-slide{
  position: relative;      /* ✅ Caption-Positionierung */
  overflow: hidden;        /* ✅ Caption bleibt drin */
  border-radius: 0;        /* ✅ keine Rundung */
  background: transparent; /* ✅ kein Layer */
  border: none;
  box-shadow: none;
  margin: 0;
}

/* Entfernt wirklich JEGLICHE Overlays, falls irgendwo definiert */
.gallery-slide::before,
.gallery-slide::after{
  content: none !important;
  display: none !important;
}

/* Bild bestimmt Breite (variable width), Höhe fix */
.gallery-slide img{
  height: 100%;
  width: auto;
  display: block;          /* ✅ kein Inline-Gap */
  object-fit: cover;
  object-position: center;
}

/* Hochkant bleibt ebenfalls cover */
.gallery-slide.is-portrait img{
  object-fit: cover;
}

/* =========================================
   Caption (heller Look)
   ========================================= */
.gallery-caption{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
  margin: 0;

  padding: 14px 18px;
  box-sizing: border-box;

  /* Text */
  color: #000;
  font-size: clamp(1.6rem, 1.5vw + 1.2rem, 2.4rem);
  line-height: 1.5;
  font-weight: 300;

  /* Hintergrund: halbtransparent weiß */
  background: var(--caption-bg);

  /* Optional: leichter Blur für Wertigkeit */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Optional: auf sehr kleinen Screens kompakter */
@media (max-width: 576px){
  :root{
    --rail-h: 56vh;
  }
  .gallery-caption{
    padding: 12px 14px;
  }
}

/* =========================================
   Prev / Next Navigation
   ========================================= */
.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(254,209,54,.55);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 10;
  cursor: pointer;
}

.gallery-nav.prev{
  left: max(10px, calc(var(--page-gutter) - 6px));
}
.gallery-nav.next{
  right: max(10px, calc(var(--page-gutter) - 6px));
}

.gallery-nav::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(254,209,54,.95);
  border-bottom: 2px solid rgba(254,209,54,.95);
  transform: rotate(135deg);
}
.gallery-nav.next::before{
  transform: rotate(-45deg);
}

@media (max-width: 576px){
  .gallery-nav{
    width: 38px;
    height: 38px;
  }
}

/* =========================================
   Thumbnail-Leiste (optional)
   ========================================= */
.gallery-thumbs{
  padding: 10px 0 18px;
}

.gallery-thumbs-rail{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 var(--page-gutter);
  scrollbar-width: none;
}
.gallery-thumbs-rail::-webkit-scrollbar{
  display: none;
}

.thumb{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;

  color: rgba(255,255,255,0.85);
  cursor: pointer;
  flex: 0 0 auto;
}

.thumb img{
  width: 54px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.thumb span{
  font-size: 0.95rem;
  white-space: nowrap;
}

.thumb.is-active{
  border-color: rgba(254,209,54,.55);
  box-shadow: 0 0 0 4px rgba(254,209,54,.14);
}

/* =========================================
   Textblock unter der Galerie
   ========================================= */
.project-text{
  padding: 18px 0 10px;
}

.project-text p{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.15rem);
  line-height: 1.55;
}

/* =========================================
   CTA-Zeile (falls du sie wieder nutzt)
   ========================================= */
.project-cta-row{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.project-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;

  text-decoration: none;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(254,209,54,0.45);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.project-cta-label{
  color: rgba(254,209,54,0.95);
  font-weight: 500;
}

.project-next{
  margin-left: auto;
  text-decoration: none;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
}

/* =========================================
   Footer / Smiley (optional)
   ========================================= */
.project-foot{
  padding: 26px 0 42px;
}

.project-smiley{
  display: block;
  width: min(380px, 70vw);
  height: auto;
  opacity: 0.95;
		
}
