/* ── Lightbox open: suppress fixed/sticky theme headers ── */
body.rt7-lb-open { overflow: hidden; }
body.rt7-lb-open .site-header,
body.rt7-lb-open .cloned,
body.rt7-lb-open [class*="site-header"],
body.rt7-lb-open [class*="nav-wrap"],
body.rt7-lb-open [class*="header-wrap"] { z-index: 0 !important; }

/* ── Gallery layout ── */
.rt7-gallery { max-width: 960px; margin: 0 auto; }
.rt7-show { margin-bottom: 56px; }

.rt7-show-role {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 4px;
}

.rt7-show-title {
  font-size: 20px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-style: italic;
}

.rt7-photo-grid-fe {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.rt7-photo-item {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
}

.rt7-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.rt7-photo-item:hover img { transform: scale(1.04); }

.rt7-caption-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.rt7-photo-item:hover .rt7-caption-overlay { opacity: 1; }

/* ── Lightbox ── */
.rt7-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt7-lightbox[hidden] { display: none; }

.rt7-lb-inner {
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rt7-lb-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.rt7-lb-caption {
  color: #ccc;
  font-size: 13px;
  font-family: Georgia, serif;
  font-style: italic;
  margin: 12px 0 4px;
  min-height: 20px;
}

.rt7-lb-counter {
  color: #666;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
}

.rt7-lb-close,
.rt7-lb-prev,
.rt7-lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 8px;
}
.rt7-lb-close:hover,
.rt7-lb-prev:hover,
.rt7-lb-next:hover { opacity: 1; }

.rt7-lb-close { top: 16px; right: 20px; font-size: 28px; }
.rt7-lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.rt7-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .rt7-photo-grid-fe { grid-template-columns: repeat(2, 1fr); }
  .rt7-photo-item img { height: 150px; }
  .rt7-lb-prev { left: 4px; }
  .rt7-lb-next { right: 4px; }
}
