@charset "utf-8";

.gallery-detail-nav {
  position: relative;
  z-index: 5;
}

.gallery-detail-nav .navRight a {
  color: #fff;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.gallery-detail-page {
  min-height: calc(100vh - 80px);
  padding: 0 0 68px;
  background: #f4f8fc;
}

.gallery-detail-hero {
  padding: 42px max(22px, calc((100% - 1080px) / 2));
  color: #fff;
  background: linear-gradient(120deg, #092b70, #176bce);
}

.gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: #d7efff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.gallery-detail-hero > p {
  margin: 0 0 8px;
  color: #bae6ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.gallery-detail-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 780;
  letter-spacing: -.045em;
}

.gallery-detail-hero > span {
  display: block;
  max-width: 740px;
  margin-top: 12px;
  color: #e2f3ff;
  line-height: 1.6;
}

.gallery-detail-hero small {
  display: inline-block;
  margin-top: 16px;
  color: #c7eaff;
}

.gallery-media-section,
.gallery-detail-empty {
  width: min(1080px, calc(100% - 42px));
  margin: 38px auto 0;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.gallery-photo-button {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #dceafa;
  box-shadow: 0 8px 18px rgba(20, 57, 111, .1);
  cursor: zoom-in;
}

.gallery-photo-button img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-photo-button:hover img {
  transform: scale(1.05);
}

.gallery-photo-button span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 23px 11px 10px;
  color: #fff;
  background: linear-gradient(transparent, rgba(2, 22, 66, .76));
  font-size: .78rem;
  text-align: left;
}

.gallery-video-detail {
  max-width: 920px;
}

.gallery-video-frame {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 18px;
  background: #0b2e70;
  box-shadow: 0 15px 30px rgba(20, 57, 111, .15);
}

.gallery-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-download-list {
  display: grid;
  gap: 12px;
}

.gallery-download-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  color: #234875;
  background: #fff;
  box-shadow: 0 7px 18px rgba(20, 57, 111, .06);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-download-list a:hover {
  box-shadow: 0 11px 23px rgba(20, 90, 190, .14);
  transform: translateY(-2px);
}

.gallery-download-icon {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #f09a20, #d86035);
}

.gallery-download-list span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.gallery-download-list strong,
.gallery-download-list small {
  display: block;
}

.gallery-download-list small {
  overflow: hidden;
  margin-top: 4px;
  color: #7892af;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-detail-empty {
  min-height: 220px;
}

.gallery-detail-empty a {
  display: inline-flex;
  margin-top: 15px;
  color: #1268ca;
  font-weight: 750;
  text-decoration: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(2, 12, 37, .88);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox figure {
  max-width: min(100%, 1080px);
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 95px);
  margin: 0 auto;
  border-radius: 10px;
}

.gallery-lightbox figcaption {
  margin-top: 10px;
  color: #fff;
  font-size: .84rem;
  text-align: center;
}

.gallery-lightbox-close {
  position: fixed;
  top: 15px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  font-size: 1.8rem;
}

@media (max-width: 680px) {
  .gallery-detail-nav .navRight {
    display: none;
  }

  .gallery-detail-hero {
    padding: 28px 18px 32px;
  }

  .gallery-media-section,
  .gallery-detail-empty {
    width: min(100% - 28px, 540px);
    margin-top: 28px;
  }

  .gallery-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-photo-button {
    min-height: 145px;
  }

  .gallery-lightbox {
    padding: 18px;
  }
}
