/**
 * Single Highlights post template.
 */

.highlight-single {
  padding: 48px 20px 72px;
  background: #fff;
}

.highlight-single__wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.highlight-single__header {
  margin-bottom: 36px;
  text-align: center;
}

.highlight-single h1.highlight-single__title {
  margin: 0 0 12px;
  color: #b4975a;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-single__year {
  margin: 0;
  color: #111;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
}

.highlight-single__video {
  margin-bottom: 40px;
}

.highlight-single__video-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.highlight-single__video-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.highlight-single__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight-single__gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.highlight-single__gallery-item:hover {
  opacity: 0.92;
}

.highlight-single__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

body.highlight-lightbox-open {
  overflow: hidden;
}

.highlight-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.highlight-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.highlight-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.92);
  cursor: pointer;
}

.highlight-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
}

.highlight-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  object-fit: contain;
}

.highlight-lightbox__counter {
  margin: 14px 0 0;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
}

.highlight-lightbox button {
  margin: 0;
  text-align: center;
}

.highlight-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  transition: background 0.2s ease;
}

.highlight-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.highlight-lightbox__close span {
  display: block;
  width: 1em;
  height: 1em;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.highlight-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  margin-top: -26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.highlight-lightbox__nav:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.highlight-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
}

.highlight-lightbox__nav--prev {
  left: 16px;
}

.highlight-lightbox__nav--next {
  right: 16px;
}

@media (max-width: 991px) {
  .highlight-single__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .highlight-single {
    padding: 32px 16px 56px;
  }

  .highlight-single__header {
    margin-bottom: 28px;
  }

  .highlight-single__video {
    margin-bottom: 28px;
  }

  .highlight-single__gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .highlight-single__gallery-item {
    aspect-ratio: 16 / 9;
  }

  .highlight-lightbox {
    padding: 16px 12px;
  }

  .highlight-lightbox__nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 32px;
  }

  .highlight-lightbox__nav--prev {
    left: 4px;
  }

  .highlight-lightbox__nav--next {
    right: 4px;
  }

  .highlight-lightbox__close {
    top: 12px;
    right: 12px;
  }
}
