:root{
  --page-max: 1100px;
  --bg: #fbf8ff;
  --surface: rgba(255,255,255,.78);
  --surface-strong: rgba(255,255,255,.90);
  --stroke: rgba(40, 16, 60, .10);
  --text: #2a1236;
  --muted: rgba(42,18,54,.72);
  --accent: #b56cff;
  --accent-2: #ff6fb3;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(181,108,255,.14), transparent 60%),
    radial-gradient(900px 420px at 20% -120px, rgba(255,111,179,.12), transparent 60%),
    var(--bg);
}

header{ position: relative; }

.logo{ display:inline-flex; align-items:center; justify-content:center; }
.logo img{
  width: 128px; 
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(30,10,45,.12));
  transition: width 220ms ease, transform 220ms ease, filter 220ms ease;
}

@media (max-width: 720px){
  .navbar{
    flex-direction: column;
    padding: 14px 12px;
  }

  .navbar nav,
  .navbar .nav-right{
    position: static;
  }

  .navbar nav ul,
  .navbar .nav-right{
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo img{ width: 110px; }
  .header--scrolled .logo img{ width: 84px; }
}

@media (prefers-reduced-motion: reduce){
  .navbar, .logo img, .navbar a, .navbar a::after{ transition:none !important; }
}

.page{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 38px 18px 80px;
}

.page__title{
  text-align:center;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px); 
  margin: 6px 0 18px;
}

.gallery{
  margin: 34px 0 0;
}

.gallery__headline{
  text-align:center;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: .3px;
  margin: 16px 0 18px;
}

.gallery__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery__item{
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  border: 1px solid rgba(40, 16, 60, .10);
  background: rgba(255,255,255,.60);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.gallery__item:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(30, 10, 45, 0.12);
}

.gallery__item img,
.gallery__item video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

@media (max-width: 980px){
  .gallery__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px){
  .gallery__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .gallery__grid{ grid-template-columns: 1fr; }
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.lightbox.is-open{ display:block; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.88);
}

.lightbox__panel{
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 14px;
  display: grid;
  place-items: center;
  background: transparent;
}

.lightbox__figure{
  width: min(1100px, 100%);
  height: calc(100vh - 120px);
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}


.lightbox__figure img,
.lightbox__figure video,
#lightboxImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.lightbox__caption{
  text-align:center;
  font-size: 16px;
  color: rgba(255,255,255,.9);
}

.lightbox__close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000000;
}

.lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000000;
}

.lightbox__nav--prev{ left: 12px; }
.lightbox__nav--next{ right: 12px; }

@media (max-width: 600px){
  .lightbox__panel{ padding: 0; }
  .lightbox__figure{
    width: 100%;
    height: 100vh;
    gap: 10px;
    padding: 64px 12px 18px; 
  }
  .lightbox__nav{
    width: 46px;
    height: 46px;
    font-size: 30px;
  }
}
.lightbox__panel{
  padding: 0;                 
}

.lightbox__figure{
  width: 100%;
  height: 100vh;
  padding: 64px 12px 18px;   
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{ display: block; }

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}

.lightbox__panel{
  position: relative;
  width: min(1000px, 92vw);
  max-height: 82vh;
  margin: 6vh auto 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(20, 12, 28, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
}

.lightbox__figure{
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.lightbox__figure img,
.lightbox__figure video{
  width: 100%;
  max-height: 68vh;     
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.lightbox__caption{
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,.9);
}

.lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}

.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}
.lightbox__nav--prev{ left: 12px; }
.lightbox__nav--next{ right: 12px; }

@media (max-width: 600px){
  .lightbox__panel{
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding: 12px;
    background: rgba(0,0,0,.88);
    border: 0;
  }

  .lightbox__figure img,
  .lightbox__figure video{
    max-height: 82vh;
    border-radius: 12px;
  }

  .lightbox__close{
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
  }
}
.galleryLoading{
  text-align:center;
  padding: 40px 12px;
  opacity:.7;
  font-size: 18px;
}