/* Interior galleries — grid + modal overlay
   - Shows only real photos (JS builds the grid)
   - Click -> smooth modal overlay (no new tab)
*/

/* Grid */
.pp-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 980px){ .pp-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .pp-grid{ grid-template-columns: 1fr; gap: 14px; } }

.pp-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pp-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.42); }
.pp-card:active{ transform: translateY(0px); }

.pp-card img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* No scroll while overlay open */
.mc-noscroll{ overflow: hidden !important; }

/* Overlay */
.mc-photo-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.mc-photo-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* Darken + 50% transparency + blur */
.mc-photo-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

/* Close X (top-right) */
.mc-photo-x{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(198,110,0,.38);
  background: rgba(18,18,18,.40);
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* dirty-orange glow */
  box-shadow:
    0 0 0 1px rgba(198,110,0,.18),
    0 0 18px rgba(198,110,0,.22),
    0 12px 28px rgba(0,0,0,.38);
}

/* Stage holds image and controls */
.mc-photo-stage{
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* The hero image is positioned by JS (fixed left/top/width/height) */
.mc-photo-hero{
  position: fixed;
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(0,0,0,.55),
    0 0 70px rgba(198,110,0,.14);
  object-fit: contain;
  background: rgba(0,0,0,.15);
}

/* More button appears after open */
.mc-photo-more{
  position: fixed;
  left: 24px;
  bottom: 24px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(198,110,0,.38);
  background: rgba(18,18,18,.45);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* dirty-orange glow */
  box-shadow:
    0 0 0 1px rgba(198,110,0,.18),
    0 0 18px rgba(198,110,0,.22),
    0 12px 28px rgba(0,0,0,.38);
}

/* Description box (no heading, no numbers) */
.mc-photo-desc{
  position: fixed;
  right: 24px;
  bottom: 74px;
  width: min(420px, calc(100vw - 48px));
  max-height: min(52vh, 520px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,15,15,.55);
  color: rgba(255,255,255,.88);
  padding: 16px 16px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 5;
}
.mc-photo-desc.open{
  transform: translateY(0px);
  opacity: 1;
  pointer-events: auto;
}

.mc-photo-desc-x{
  position: sticky;
  top: 0;
  float: right;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(198,110,0,.30);
  background: rgba(18,18,18,.40);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;

  box-shadow:
    0 0 0 1px rgba(198,110,0,.14),
    0 0 14px rgba(198,110,0,.18);
}
.mc-photo-desc-text{
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 15px;
}

/* Mobile tweaks */
@media (max-width: 560px){
  .mc-photo-more{ left: 16px; bottom: 16px; }
  .mc-photo-desc{ right: 16px; bottom: 62px; }
  .mc-photo-x{ top: 10px; right: 10px; }
}
