/**
 * Album single + lightbox — Nuxt /gallery/{id} parity.
 */

body.artek-album-single-page {
  background: #fff !important;
}

body.artek-album-single-page .site-main--content .artek-content-entry::before,
body.artek-album-single-page .site-main--inner > .entry::before {
  background: #fff !important;
}

.artek-album-single {
  --artek-album-base: #001330;
  --artek-album-accent: #ee712b;
  --artek-album-gradient: linear-gradient(226deg, #d80960 0%, #fec200 100%);

  position: relative;
  z-index: 4;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 0 var(--artek-content-footer-clearance, 5rem);
  color: var(--artek-album-base);
  background: #fff;
}

.artek-album-single *,
.artek-album-single *::before,
.artek-album-single *::after {
  box-sizing: border-box;
}

.artek-album-single__inner {
  width: min(100% - 2.5rem, 87.5rem);
  margin: 0 auto;
}

.artek-album-single__section-title {
  margin: 0;
  color: var(--artek-album-base);
  font-family: "Lato-Bold", Lato, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.artek-album-single__title {
  margin: 1rem 0 0;
  color: var(--artek-album-accent);
  font-family: "Lato-Bold", Lato, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  background-image: var(--artek-album-gradient);
  background-size: contain;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.artek-album-single__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.artek-album-single__thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #001330;
  cursor: pointer;
}

.artek-album-single__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.artek-album-single__thumb:hover img,
.artek-album-single__thumb:focus-visible img {
  transform: scale(1.08);
}

.artek-album-single__thumb:focus-visible {
  outline: 2px solid var(--artek-album-accent);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .artek-album-single__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 5rem;
  }
}

/* —— Lightbox (moved to body by JS) —— */

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

.artek-album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4rem 0 2rem;
  box-sizing: border-box;
}

.artek-album-lightbox__overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 19, 48, 0.8);
}

.artek-album-lightbox__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100% - 2.5rem, 87.5rem);
  margin: 0 auto;
}

.artek-album-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .artek-album-lightbox__toolbar {
    margin-bottom: 2rem;
  }
}

.artek-album-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.artek-album-lightbox__close:hover,
.artek-album-lightbox__close:focus-visible {
  color: #ee712b;
  outline: none;
}

.artek-album-lightbox__swiper {
  width: 100%;
  overflow: hidden;
}

.artek-album-lightbox__slide {
  width: 100%;
  overflow: hidden;
  background: #001330;
}

@media (min-width: 640px) {
  .artek-album-lightbox__slide {
    border-radius: 0; /* no rounding per product preference */
  }
}

.artek-album-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 48rem);
  margin: 0 auto;
  object-fit: contain;
  user-select: none;
}

.artek-album-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}

@media (min-width: 1024px) {
  .artek-album-lightbox__footer {
    justify-content: space-between;
  }
}

.artek-album-lightbox__counter {
  display: flex;
  align-items: baseline;
  font-family: "Lato-Medium", Lato, sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
}

.artek-album-lightbox__counter-current {
  background-image: linear-gradient(226deg, #d80960 0%, #fec200 100%);
  background-size: contain;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d80960;
}

.artek-album-lightbox__counter-total {
  color: rgba(255, 255, 255, 0.72);
}

.artek-album-lightbox__navs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.artek-album-lightbox__nav {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.artek-album-lightbox__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(180deg, #fec200 0%, #d80960 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.artek-album-lightbox__nav:hover,
.artek-album-lightbox__nav:focus,
.artek-album-lightbox__nav:focus-visible {
  border-color: transparent;
  color: #fff;
  outline: none;
}

.artek-album-lightbox__nav:hover::before,
.artek-album-lightbox__nav:focus::before,
.artek-album-lightbox__nav:focus-visible::before {
  opacity: 1;
}

.artek-album-lightbox__nav-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  pointer-events: none;
}

.artek-album-lightbox__nav-icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

html.artek-album-lightbox-open,
html.artek-album-lightbox-open body {
  overflow: hidden;
}
