/* ============================================================
   JL1EHQ Official Website — PHOTO page extensions
   Another hobby: camera. Off-duty photographs from Hokkaido.
   ============================================================ */

/* ---- hero ---- */
.ph-hero {
  background: radial-gradient(ellipse at 50% -10%, rgba(47,124,255,.20), transparent 62%), var(--bg);
  text-align: center;
  padding: 140px 22px 66px;
  border-bottom: 1px solid rgba(120,190,255,.12);
}
.ph-hero .kicker {
  color: var(--glow); font-family: "Orbitron", sans-serif;
  font-size: 11px; letter-spacing: .38em; margin-bottom: 18px;
}
.ph-hero h1 {
  color: #fff; font-size: clamp(26px, 5vw, 46px);
  letter-spacing: .08em; margin-bottom: 18px; font-weight: 700;
}
.ph-hero h1 .accent { color: var(--cyan); text-shadow: 0 0 24px rgba(77,195,255,.7); }
.ph-hero .lead {
  color: var(--text-dim); font-size: 14.5px;
  max-width: 720px; margin: 0 auto;
}
.ph-hero .tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ph-hero .tags span {
  border: 1px solid var(--glass-border); background: var(--glass);
  backdrop-filter: blur(10px); border-radius: 999px;
  padding: 7px 18px; font-size: 11.5px; letter-spacing: .18em; color: var(--cyan);
  font-family: "Orbitron", sans-serif;
}

/* ---- collection ---- */
.collection { margin-bottom: 90px; }
.col-head { margin-bottom: 30px; }
.col-no {
  font-family: "Orbitron", sans-serif; color: var(--gold);
  font-size: 11px; letter-spacing: .34em; margin-bottom: 10px;
}
.col-head h2 { color: #fff; font-size: clamp(21px, 3.4vw, 30px); font-weight: 700; margin-bottom: 6px; }
.col-head .en-name {
  color: var(--glow); font-family: "Orbitron", sans-serif;
  font-size: 10.5px; letter-spacing: .22em; margin-bottom: 16px;
}
.col-head .col-lead { color: var(--text-dim); font-size: 14px; max-width: 760px; margin-bottom: 14px; }
.col-head .col-meta {
  color: var(--cyan); font-size: 12px; letter-spacing: .08em;
  padding-top: 14px; border-top: 1px solid rgba(120,190,255,.15);
}

/* ---- photo grid (square) ---- */
.photo-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.p-item {
  position: relative; padding: 0; margin: 0; width: 100%;
  border: 1px solid rgba(120,190,255,.12); border-radius: 14px;
  overflow: hidden; cursor: zoom-in; background: var(--bg-2);
  aspect-ratio: 1/1; display: block; transition: .35s;
}
.p-item:hover { border-color: rgba(120,190,255,.42); box-shadow: 0 0 34px rgba(47,124,255,.18); }
.p-item img { width: 100%; height: 100%; object-fit: cover; transition: .55s; }
.p-item:hover img { transform: scale(1.06); }
.p-item:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.p-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 11px;
  background: linear-gradient(transparent, rgba(4,6,12,.92));
  color: var(--text); font-size: 11.5px; letter-spacing: .05em;
  text-align: left; line-height: 1.5;
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-item .cap { font-size: 10.5px; padding: 22px 9px 8px; }
}

/* ---- lightbox (photo page) ---- */
.ph-lb {
  position: fixed; inset: 0; z-index: 300; background: #02040a;
  display: none; align-items: center; justify-content: center;
}
.ph-lb.open { display: flex; }
.ph-lb .stage {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 54px 0 44px; max-width: 96vw;
}
.ph-lb img {
  max-width: 94vw; max-height: calc(100svh - 210px);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 0 90px rgba(47,124,255,.22);
  animation: ph-in .35s ease both;
}
@keyframes ph-in { from { opacity: 0; transform: scale(.985);} to { opacity: 1; transform: none;} }
.ph-lb .ph-cap { text-align: center; max-width: 62ch; padding: 0 18px; }
.ph-lb .ph-cap .t { display: block; color: #fff; font-size: 15.5px; letter-spacing: .08em; margin-bottom: 4px; font-weight: 600; }
.ph-lb .ph-cap .d { color: var(--text-dim); font-size: 13px; }
.ph-lb .ph-count {
  color: var(--glow); font-family: "Orbitron", sans-serif;
  font-size: 11px; letter-spacing: .26em; opacity: .8;
}
.ph-btn {
  position: fixed; background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); cursor: pointer; border-radius: 999px;
  backdrop-filter: blur(8px); transition: .25s; line-height: 1;
}
.ph-btn:hover, .ph-btn:focus-visible { border-color: var(--glow); box-shadow: 0 0 18px rgba(77,195,255,.35); color: #fff; }
.ph-close { top: 16px; right: 16px; padding: 9px 17px; font-size: 20px; }
.ph-prev, .ph-next { top: 50%; transform: translateY(-50%); padding: 14px 19px; font-size: 22px; }
.ph-prev { left: 14px; }
.ph-next { right: 14px; }
@media (max-width: 640px) {
  .ph-prev, .ph-next { top: auto; bottom: 16px; transform: none; padding: 11px 17px; }
  .ph-prev { left: 18px; } .ph-next { right: 18px; }
  .ph-lb .stage { padding: 50px 0 74px; }
  .ph-lb img { max-height: calc(100svh - 250px); }
}

/* ---- teaser strip used on index.html ---- */
.offduty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
  margin-bottom: 30px;
}
.offduty-grid a { border-radius: 12px; overflow: hidden; border: 1px solid rgba(120,190,255,.12); aspect-ratio: 1/1; display: block; transition: .35s; }
.offduty-grid a:hover { border-color: rgba(120,190,255,.42); box-shadow: 0 0 28px rgba(47,124,255,.18); }
.offduty-grid img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.offduty-grid a:hover img { transform: scale(1.06); }
