@charset "utf-8";
/* ==========================================================================
   lightbox.css
   共通フォトライトボックス（メニューページ／スタイルページで使用）
   ========================================================================== */

.amie-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 26, 22, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.amie-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.amie-lightbox-stage {
  position: relative;
  width: min(1000px, 88vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amie-lightbox-frame {
  position: relative;
  width: 100%;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #14100d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.amie-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.amie-lightbox-frame img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.amie-lightbox-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bg);
}

.amie-lightbox-caption {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(252, 250, 248, 0.85);
}

.amie-lightbox-count {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--beige-400);
  flex-shrink: 0;
}

.amie-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
  z-index: 2;
}

.amie-lightbox-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.amie-lightbox-close span:first-child { transform: rotate(45deg); }
.amie-lightbox-close span:last-child { transform: rotate(-45deg); }

.amie-lightbox-close:hover {
  transform: scale(1.08) rotate(90deg);
}

.amie-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(252, 250, 248, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}

.amie-lightbox-nav:hover {
  background: var(--bg);
  transform: translateY(-50%) scale(1.08);
}

.amie-lightbox-nav::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.amie-lightbox-prev {
  left: 10px;
}

.amie-lightbox-prev::after {
  transform: rotate(135deg) translate(-1px, -1px);
}

.amie-lightbox-next {
  right: 10px;
}

.amie-lightbox-next::after {
  transform: rotate(-45deg) translate(-1px, -1px);
}

@media (max-width: 768px) {
  .amie-lightbox-stage {
    width: 92vw;
  }

  .amie-lightbox-close {
    top: -50px;
    right: 0;
  }

  .amie-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .amie-lightbox-prev {
    left: 2px;
  }

  .amie-lightbox-next {
    right: 2px;
  }

  .amie-lightbox-caption {
    font-size: 12px;
  }
}

/* ---------------------------------
   サムネイル共通（ギャラリーグリッド用）
--------------------------------- */
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
  position: relative;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.photo-thumb:hover img {
  transform: scale(1.06);
}

.photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(58, 54, 51, 0);
  transition: background 0.35s var(--ease);
}

.photo-thumb:hover::after {
  background: rgba(58, 54, 51, 0.12);
}
