/* ── OTHER PROJECTS ─────────────────────────────── */

/* Carousel — fixed height, natural width per slide so any
   aspect ratio sits side by side without cropping */
.op-carousel {
  margin: 0;
}

.op-carousel .splide__slide {
  width: auto;
}

.op-slide {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.op-slide img {
  height: 480px;
  width: auto;
  max-width: min(1220px, calc(100vw - 120px));
  object-fit: contain;
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
}

.op-carousel .splide__arrow {
  background: rgba(0, 0, 0, .4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 1;
}

.op-carousel .splide__arrow:hover {
  background: rgba(0, 0, 0, .6);
}

.op-carousel .splide__arrow svg {
  fill: #fff;
  width: 18px;
  height: 18px;
}

/* ── LIGHTBOX ──────────────────────────────────── */
.op-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(19, 23, 34, .95);
  display: none;
  align-items: center;
  justify-content: center;
}

.op-lightbox.is-open {
  display: flex;
}

.op-lightbox__img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  border-radius: 6px;
}

.op-lightbox__close,
.op-lightbox__prev,
.op-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.op-lightbox__close:hover,
.op-lightbox__prev:hover,
.op-lightbox__next:hover {
  background: rgba(255, 255, 255, .25);
}

.op-lightbox__close {
  top: 20px;
  right: 20px;
}

.op-lightbox__prev,
.op-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.op-lightbox__prev { left: 20px; }
.op-lightbox__next { right: 20px; }

/* ── MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .op-slide img {
    height: 380px;
    max-width: calc(100vw - 80px);
  }

  .op-lightbox__img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 140px);
  }

  .op-lightbox__prev { left: 8px; }
  .op-lightbox__next { right: 8px; }
  .op-lightbox__close { top: 12px; right: 12px; }
}
