/* =========================================================
   PHOTOS / GALLERY STYLES ONLY
   Scoped under .photos-page to avoid collisions
   ========================================================= */

/* ---------- Slider (Top Categories) ---------- */
.photos-page .slider{
  position: relative;
  margin: 18px 0 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.photos-page .slider-btn{
  height: 44px;
  width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.photos-page .slider-btn:hover{
  background: rgba(255,255,255,0.10);
}

.photos-page .slider-track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px;
  scrollbar-width: none;
}

.photos-page .slider-track::-webkit-scrollbar{
  display: none;
}

.photos-page .slide-card{
  min-width: 240px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.05)
  );
  border: 1px solid rgba(255,255,255,0.16);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  transition: transform 160ms ease, background 160ms ease;
}

.photos-page .slide-card:hover{
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.07)
  );
}

.photos-page .slide-chip{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(136,160,255,0.22);
  border: 1px solid rgba(136,160,255,0.32);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.photos-page .slide-sub{
  margin-top: 10px;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}

/* ================================
   CATEGORY SLIDER – IMAGE CARDS
   (Readable text guaranteed)
   ================================ */

.slide-card{
  position: relative;
  min-width: 240px;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

/* Background image */
.slide-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.4s ease;
}

/* Strong contrast overlay */
.slide-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.80) 100%
  );
  z-index: 1;
}

/* Text container */
.slide-content{
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.18);
}

/* Category label */
.slide-chip{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(136,160,255,0.95);
  color: #c9c9c9;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* Subtitle */
.slide-sub{
  margin-top: 6px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.96;
}

/* Hover polish */
.slide-card:hover .slide-bg{
  transform: scale(1.08);
}

.slide-card:hover .slide-content{
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}


/* ---------- Yearbook Collage Grid ---------- */
.photos-page .collage-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding: 12px 0 6px;
}

.photos-page .polaroid{
  grid-column: span 4;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 180ms ease;
}

.photos-page .polaroid img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.photos-page .polaroid:hover{
  transform: rotate(0deg) translateY(-3px) scale(1.01);
}

/* Polaroid tilt variations */
.photos-page .tilt-1{ transform: rotate(-1.8deg); }
.photos-page .tilt-2{ transform: rotate(1.3deg); }
.photos-page .tilt-3{ transform: rotate(-0.9deg); }
.photos-page .tilt-4{ transform: rotate(2.1deg); }
.photos-page .tilt-5{ transform: rotate(-2.4deg); }

/* Responsive collage */
@media (max-width: 980px){
  .photos-page .polaroid{ grid-column: span 6; }
}
@media (max-width: 620px){
  .photos-page .polaroid{ grid-column: span 12; }
}

/* ---------- Bottom Shoot Links ---------- */
.photos-page .shoot-links{
  margin-top: 22px;
}

.photos-page .shoot-link-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.photos-page .shoot-link{
  text-align: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, background 160ms ease;
}

.photos-page .shoot-link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
}

@media (max-width: 900px){
  .photos-page .shoot-link-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px){
  .photos-page .shoot-link-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   SHOOT PAGES (Perfect Square Grid + Hero)
   ========================================== */

/* ---------- Shoot Pages (Square Grid) ---------- */
.photos-page .shoot-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 6px;
}

/* Tile (works for button or link) */
.photos-page .shoot-item{
  width: 100%;
  aspect-ratio: 1 / 1;           /* force the TILE to be square */
  display: block;

  border: 0;                     /* important for <button> */
  padding: 0;                    /* important for <button> */
  margin: 0;                     /* important for <button> */
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);

  cursor: pointer;
  transition: transform 160ms ease;
}

/* Hover lift */
.photos-page .shoot-item:hover{
  transform: translateY(-2px);
}

/* Image always fills the square tile */
.photos-page .shoot-item img{
  width: 100%;
  height: 100%;                 /* key: fill the square tile */
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform 220ms ease;
}

.photos-page .shoot-item:hover img{
  transform: scale(1.06);
}

/* Fallback: if images are direct children (before JS wraps) */
.photos-page .shoot-grid > img{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Responsive shoot grid */
@media (max-width: 1100px){
  .photos-page .shoot-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px){
  .photos-page .shoot-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px){
  .photos-page .shoot-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px){
  .photos-page .shoot-grid{
    grid-template-columns: 1fr;
  }
}

/* ---------- Shoot Page Hero ---------- */
.photos-page .photos-hero{
  padding: 70px 0 18px;
  background:
    radial-gradient(700px 380px at 20% 10%, rgba(136,160,255,0.22), transparent 60%),
    radial-gradient(700px 380px at 80% 30%, rgba(196,140,81,0.16), transparent 60%),
    rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.photos-page .photos-hero_inner{
  text-align: center;
}

.photos-page .photos-title{
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 10px 0 6px;
  letter-spacing: 0.3px;
}

.photos-page .photos-subtitle{
  opacity: 0.85;
  margin: 0;
}

.photos-page .back-link{
  display: inline-block;
  text-decoration: none;
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px;
  border-radius: 999px;
}

.photos-page .back-link:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

/* Fallback hover + click feel (when images are direct children of .shoot-grid) */
.photos-page .shoot-grid > img{
  cursor: zoom-in;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.photos-page .shoot-grid > img:hover{
  transform: scale(1.06) translateY(-2px);
}



/* =========================
   LIGHTBOX POPUP
   ========================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}

.lightbox.is-open{
  display: flex;
}

.lightbox_inner{
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 88vh;
}

.lightbox_img{
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);

  /* friction (not perfect security, but helps) */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* prevents long-press menu on image itself */
}

/* Close button (always visible, especially for mobile) */
.lightbox_close{
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Make sure the overlay itself is clickable to close */
.lightbox{
  cursor: zoom-out;
}
.lightbox_inner{
  cursor: default;
}

/* Mobile: reduce close offset so it doesn't go off-screen */
@media (max-width: 480px){
  .lightbox_close{
    top: 8px;
    right: 8px;
  }
}
