/* ==========================================================================
 * Fine Eyewear — Split Section, Accordion & Scrollable Gallery Lightbox
 * Shared styles for split image/accordion layouts and zoomable galleries.
 * ========================================================================== */

/* Split Section: Left Featured Media + Right Accordion */
.fe-vf-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 44px;
}

@media (max-width: 900px) {
  .fe-vf-split {
    grid-template-columns: 1fr;
  }
}

.fe-vf-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fe-vf-accordion details {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fe-vf-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
}

.fe-vf-accordion summary::-webkit-details-marker {
  display: none;
}

.fe-vf-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: #a67c53;
}

.fe-vf-accordion details[open] summary::after {
  content: "\2212";
}

.fe-vf-accordion details[open] summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fe-vf-accordion-body {
  padding: 16px 20px;
  line-height: 1.65;
}

.fe-vf-accordion-body p:last-child {
  margin-bottom: 0;
}

/* Gallery Thumbnail Cards */
.fe-vf-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: zoom-in;
}

.fe-vf-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.fe-vf-gallery-item:hover img {
  transform: scale(1.04);
}

/* Scrollable Lightbox Modal */
.fe-vf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px 68px;
}

.fe-vf-lightbox.is-open {
  display: flex;
}

.fe-vf-lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.fe-vf-lightbox img {
  max-width: 86vw;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.fe-vf-lightbox-caption {
  margin-top: 12px;
  color: #f2f2f2;
  font-size: 0.95rem;
  text-align: center;
}

.fe-vf-lightbox-counter {
  display: inline-block;
  margin-left: 10px;
  color: #cbb193;
  font-size: 0.88rem;
}

.fe-vf-lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-size: 1.65rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.fe-vf-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.fe-vf-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 1.85rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fe-vf-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.fe-vf-lightbox-prev {
  left: 16px;
}

.fe-vf-lightbox-next {
  right: 16px;
}

@media (max-width: 600px) {
  .fe-vf-lightbox {
    padding: 20px 14px;
  }

  .fe-vf-lightbox img {
    max-width: 94vw;
    max-height: 70vh;
  }

  .fe-vf-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .fe-vf-lightbox-nav:hover {
    transform: scale(1.06);
  }

  .fe-vf-lightbox-prev {
    left: 26%;
  }

  .fe-vf-lightbox-next {
    right: 26%;
  }
}