/**
 * Basit resim galerisi ve video modal — harici lightbox/lity bağımlılığı yok.
 */

.gp-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(4vw, 2rem);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gp-modal.gp-modal--open {
  opacity: 1;
  visibility: visible;
}

.gp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.92);
  cursor: pointer;
}

.gp-modal__box {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gp-modal__box > * {
  pointer-events: auto;
}

.gp-modal__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gp-modal__close:hover,
.gp-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.gp-modal__figure {
  margin: 0;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gp-modal__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.gp-modal__caption {
  margin: 0;
  max-width: 52rem;
  text-align: center;
  color: #e8e8e8;
  font-size: 0.95rem;
  line-height: 1.45;
}

.gp-modal__caption:empty {
  display: none;
}

.gp-modal__counter {
  color: #aaa;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.gp-modal__counter:empty {
  display: none;
}

.gp-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gp-modal__nav:hover,
.gp-modal__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.gp-modal__nav--prev {
  left: 0;
}

.gp-modal__nav--next {
  right: 0;
}

@media (max-width: 768px) {
  .gp-modal__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .gp-modal__nav--prev {
    left: -0.25rem;
  }

  .gp-modal__nav--next {
    right: -0.25rem;
  }
}

.gp-modal__video-wrap {
  position: relative;
  width: min(96vw, 960px);
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.gp-modal__video-wrap iframe,
.gp-modal__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.gp-modal__body-lock {
  overflow: hidden;
}
