/* KGC Denizcilik v20: stable project identity flow and on-demand Ciner media. */

/*
 * Keep the project identity in normal flex flow. The previous absolute bottom
 * anchor depended on a wrapper created after React rendered and could place
 * the entire copy block outside the clipped hero in real browsers.
 */
@media (min-width: 761px) {
  .project-detail-page
    .project-detail-hero.kgc-project-hero-v9
    .project-detail-hero-content {
    justify-content: flex-start !important;
  }

  .project-detail-page .kgc-project-hero-v9 .project-back-link {
    margin-bottom: 0 !important;
  }

  .project-detail-page .kgc-project-copy-center {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    flex: 0 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .project-detail-page .kgc-project-copy-center > * {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Ciner videos stay as lightweight poster cards until the visitor chooses one. */
.kgc-video-poster-card {
  position: relative;
}

.kgc-video-launch {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #020a10;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.kgc-video-launch-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #020a10;
}

.kgc-video-launch-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 10, 16, 0.04), rgba(2, 10, 16, 0.42));
}

.kgc-video-launch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.kgc-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(5, 29, 51, 0.76);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: background 220ms ease, transform 220ms ease;
}

.kgc-video-launch:hover .kgc-video-launch-media img {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.025);
}

.kgc-video-launch:hover .kgc-video-play {
  background: #159fd3;
  transform: translate(-50%, -50%) scale(1.07);
}

.kgc-video-launch:focus-visible {
  outline: 3px solid rgba(21, 159, 211, 0.62);
  outline-offset: 3px;
}

.kgc-video-lightbox video {
  display: block;
  width: min(480px, 88vw);
  max-height: 78vh;
  border-radius: 6px;
  background: #020a10;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  .kgc-video-play {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }
}
