
/* img_style.css - Scattered background + masonry gallery */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8f5f0;
  overflow-x: hidden;
  min-height: 100vh;
}
.img_scattered-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.img_scattered-bg img {
  position: absolute;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.18;
  filter: blur(0.5px) saturate(0.8);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.img_header {
  text-align: center;
  padding: 30px 10px 20px;
}
.img_header h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
.img_header p {
  margin-top: 12px;
  color: #6b6b6b;
  font-size: 15px;
}
.img_gallery-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}
#img_gallery {
  column-count: 3;
  column-gap: 18px;
}
@media(max-width: 900px){ #img_gallery { column-count: 2; } }
@media(max-width: 600px){ #img_gallery { column-count: 1; } }
.img_item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.img_item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}
.img_item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s;
}
.img_item:hover img { transform: scale(1.03); }

/* Lightbox */
#img_lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
#img_lightbox.img_active { display: flex; }
#img_lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: img_zoomIn 0.35s cubic-bezier(.2,.8,.2,1);
}
@keyframes img_zoomIn { from{transform:scale(0.86);opacity:0} to{transform:scale(1);opacity:1} }
#img_close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 36px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(6px);
}
#img_counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}
