/* ================================================================
   BCA Photo Gallery – Lightbox
   Version 1.0 | BCA Business Coaching Akademie
   Design-Tokens aus BCA Custom CSS
   ================================================================ */

:root {
  --bca-blue   : #2a52bc;
  --bca-gold   : #b89434;
  --bca-orange : #e15632;
  --bca-white  : #ffffff;
  --bca-radius : 3px;
  --bca-font-body    : "Montserrat", Sans-serif;
  --bca-font-heading : 'Playfair Display', Georgia, serif;
}

/* ================================================================
   TRIGGER-LINK
   Klasse .bca-gallery-open – sieht aus wie Content-Links
   ================================================================ */
a.bca-gallery-open {
  color: var(--bca-blue);
  text-decoration: none;
  font-family: var(--bca-font-body);
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: color .3s ease;
}
a.bca-gallery-open::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--bca-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
a.bca-gallery-open:hover { color: #1a3a7a; }
a.bca-gallery-open:hover::after { transform: scaleX(1); }

/* ================================================================
   LIGHTBOX WRAPPER
   ================================================================ */
.bca-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bca-photo-lightbox[hidden] { display: none !important; }

/* Overlay */
.bca-pl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 82, 188, 0.65);   /* identisch zur Team-Lightbox */
  backdrop-filter: blur(3px);
}

/* ================================================================
   PFEILE – außerhalb des weißen Bereichs im Overlay
   ================================================================ */
.bca-pl-prev,
.bca-pl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bca-white);
  color: var(--bca-blue);
  border: 2px solid var(--bca-gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.bca-pl-prev { left: 24px; }
.bca-pl-next { right: 24px; }
.bca-pl-prev:hover,
.bca-pl-next:hover {
  background: var(--bca-gold);
  color: var(--bca-white);
  transform: translateY(-50%) scale(1.08);
}

/* ================================================================
   MAIN CONTAINER
   ================================================================ */
.bca-pl-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 160px);   /* Platz für Pfeile links/rechts */
  max-height: 92vh;
  width: auto;
}

/* ================================================================
   BILD
   ================================================================ */
.bca-pl-img-wrap {
  position: relative;
  line-height: 0;
  border-radius: var(--bca-radius);
  overflow: hidden;
  /* Goldener Shadow wie .bca-grid-item */
  box-shadow: 0 0 0 5px var(--bca-gold);
}
.bca-pl-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: var(--bca-radius);
  transition: opacity .25s ease;
}
.bca-pl-img-wrap img.bca-fading { opacity: 0; }

/* ================================================================
   CAPTION + COUNTER
   ================================================================ */
.bca-pl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  gap: 20px;
}

.bca-pl-caption {
  font-family: var(--bca-font-body);
  font-size: .9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  flex: 1;
}

.bca-pl-counter {
  font-family: var(--bca-font-body);
  font-size: .85rem;
  color: var(--bca-gold);
  font-weight: 600;
  white-space: nowrap;
}

/* ================================================================
   TITEL DER GALERIE
   ================================================================ */
.bca-pl-title {
  font-family: var(--bca-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: -.01em;
}

/* ================================================================
   SCHLIESSEN-BUTTON
   ================================================================ */
.bca-pl-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: color .2s, transform .2s;
  z-index: 20;
  padding: 4px 8px;
}
.bca-pl-close:hover {
  color: var(--bca-gold);
  transform: scale(1.1);
}

/* ================================================================
   THUMBNAIL-LEISTE
   ================================================================ */
.bca-pl-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--bca-gold) transparent;
}
.bca-pl-thumbs::-webkit-scrollbar { height: 4px; }
.bca-pl-thumbs::-webkit-scrollbar-thumb { background: var(--bca-gold); border-radius: 2px; }

.bca-pl-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.bca-pl-thumb:hover { opacity: .85; }
.bca-pl-thumb.bca-active {
  opacity: 1;
  border-color: var(--bca-gold);
}

/* ================================================================
   FADE-ANIMATION
   ================================================================ */
@keyframes bcaPlFadeIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.bca-pl-img-wrap.bca-reveal {
  animation: bcaPlFadeIn .22s ease forwards;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 700px) {
  .bca-pl-wrap    { max-width: calc(100vw - 100px); }
  .bca-pl-prev    { left: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
  .bca-pl-next    { right: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
  .bca-pl-thumbs  { gap: 6px; }
  .bca-pl-thumb   { width: 52px; height: 38px; }
  .bca-pl-title   { font-size: 1.1rem; }
}
