.lynk-gallery-album-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 2.6vw, 26px);
  padding-top: calc(var(--lynk-content-below-header) + clamp(20px, 3.5vw, 40px));
}

.lynk-gallery-album-head {
  text-align: center;
  margin-bottom: 40px;
}

.lynk-gallery-album-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(247, 231, 206, 0.25);
}

.lynk-gallery-album-grid {
  column-count: 3;
  column-gap: 14px;
}

.lynk-gallery-album-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  break-inside: avoid;
  box-shadow: 0 12px 30px rgba(7, 13, 25, 0.28);
}

.lynk-gallery-album-item img {
  display: block;
  width: 100%;
  height: auto;
}

.lynk-gallery-album-nav {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lynk-gallery-album-nav-item {
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(247, 231, 206, 0.26);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #f7e7ce;
}

.lynk-gallery-album-nav-item.is-next {
  text-align: right;
  align-items: flex-end;
}

.lynk-gallery-album-nav-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(247, 231, 206, 0.7);
}

.lynk-gallery-album-related {
  margin-top: 24px;
}

.lynk-gallery-album-related-head {
  text-align: center;
  margin-bottom: 14px;
}

.lynk-gallery-album-related-head h2 {
  margin: 0;
  color: #f7e7ce;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  text-shadow: 0 0 12px rgba(247, 231, 206, 0.3);
}

.lynk-gallery-album-related-head p {
  margin: 6px 0 0;
  color: rgba(247, 231, 206, 0.74);
}

.lynk-gallery-album-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lynk-gallery-album-related-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 260px;
  text-decoration: none;
  border: 1px solid rgba(247, 231, 206, 0.24);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 12px 30px rgba(7, 13, 25, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lynk-gallery-album-related-media,
.lynk-gallery-album-related-media img,
.lynk-gallery-album-related-overlay {
  position: absolute;
  inset: 0;
}

.lynk-gallery-album-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lynk-gallery-album-related-overlay {
  background: linear-gradient(180deg, rgba(3, 6, 14, 0.08) 26%, rgba(3, 6, 14, 0.82) 100%);
}

.lynk-gallery-album-related-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: #f7e7ce;
}

.lynk-gallery-album-related-pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(247, 231, 206, 0.26);
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lynk-gallery-album-related-content h3 {
  margin: 8px 0 6px;
  color: #f7e7ce;
  font-size: 19px;
}

.lynk-gallery-album-related-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 231, 206, 0.82);
}

.lynk-gallery-album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lynk-gallery-album-lightbox[hidden] {
  display: none !important;
}

.lynk-gallery-album-lightbox-image {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-out;
}

.lynk-gallery-album-lightbox-close,
.lynk-gallery-album-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(247, 231, 206, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f7e7ce;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lynk-gallery-album-lightbox-close:hover,
.lynk-gallery-album-lightbox-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.lynk-gallery-album-lightbox-close {
  top: 22px;
  right: 22px;
  font-size: 28px;
  line-height: 1;
}

.lynk-gallery-album-lightbox-nav.is-prev {
  left: 20px;
}

.lynk-gallery-album-lightbox-nav.is-next {
  right: 20px;
}

.lynk-gallery-album-lightbox-nav svg {
  width: 22px;
  height: 22px;
  stroke: #f7e7ce;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(247, 231, 206, 0.25));
}

.lynk-gallery-album-empty {
  max-width: 900px;
  margin: 20px auto;
  padding: 16px;
  border-radius: 16px;
  color: rgba(247, 231, 206, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .lynk-gallery-album-grid {
    column-count: 2;
  }

  .lynk-gallery-album-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .lynk-gallery-album-wrap {
    padding-top: calc(var(--lynk-content-below-header) + clamp(10px, 2.5vw, 22px));
  }

  .lynk-gallery-album-grid {
    column-count: 2;
    column-gap: 10px;
  }

  .lynk-gallery-album-item {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .lynk-gallery-album-nav {
    justify-content: center;
  }

  .lynk-gallery-album-nav-item.is-next {
    text-align: center;
    align-items: center;
  }

  .lynk-gallery-album-related-grid {
    grid-template-columns: 1fr;
  }

  .lynk-gallery-album-lightbox-close,
  .lynk-gallery-album-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lynk-gallery-album-lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 24px;
  }

  .lynk-gallery-album-lightbox-nav.is-prev {
    left: 10px;
  }

  .lynk-gallery-album-lightbox-nav.is-next {
    right: 10px;
  }

  .lynk-gallery-album-lightbox-nav svg {
    width: 18px;
    height: 18px;
  }
}
