@charset "UTF-8";

/* ギャラリー：PC2列、SP1列。拡大機能はPC画面のみ。 */
.gallery-page header [aria-current="page"],
.gallery-page footer [aria-current="page"] { color: var(--gold); }
.gallery-intro .information-visual { object-position: center 48%; }
.gallery-content { max-width: 1120px; margin: 62px auto 0; }
.gallery-heading { margin-bottom: 44px; }
.gallery-heading h2 { font-size: 25px; line-height: 1.9; letter-spacing: .05em; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 40px; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #eae6dc; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery-open:disabled { display: none; }
.gallery-open:focus-visible { outline: 2px solid #94763c; outline-offset: -5px; }
.gallery-item figcaption { padding: 16px 0 15px; border-bottom: 1px solid #24251e33; color: #505149; font-size: 16px; line-height: 1.8; letter-spacing: .05em; }
@media (hover: hover) and (min-width: 641px) {
    .gallery-photo:hover img { transform: scale(1.025); }
}
.photo-dialog {
    width: calc(100vw - 64px);
    max-width: 1320px;
    height: 90vh;
    height: 90dvh;
    max-height: 960px;
    margin: auto;
    padding: 0;
    border: 1px solid #b79a5a80;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    box-shadow: 0 20px 80px #0008;
}
.photo-dialog::backdrop { background: #080b09e8; }
.photo-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.photo-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 24px; border-bottom: 1px solid #b79a5a66; }
.photo-dialog-top h2 { font-size: 20px; line-height: 1.6; font-weight: 400; letter-spacing: .05em; }
.photo-dialog-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: 0; background: transparent; color: var(--paper); font-size: 14px; cursor: pointer; white-space: nowrap; }
.photo-dialog-close span { font: 26px/1 sans-serif; }
.photo-dialog-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 20px; }
.photo-dialog-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-dialog-image[hidden], .photo-dialog-status[hidden] { display: none; }
.photo-dialog-status { padding: 24px; text-align: center; font-size: 15px; line-height: 2; }
.photo-dialog-retry { border: 1px solid var(--gold); background: transparent; color: var(--paper); padding: 10px 20px; margin-top: 18px; cursor: pointer; }
.photo-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 24px; border-top: 1px solid #b79a5a66; }
.photo-dialog-controls button { min-height: 44px; padding: 8px 18px; border: 1px solid #b79a5a88; background: transparent; color: var(--paper); cursor: pointer; font-size: 14px; }
.photo-dialog-counter { color: #d5b979; font: 14px Georgia, serif; letter-spacing: .1em; white-space: nowrap; }
.photo-dialog button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) {
    .gallery-content { margin-top: 48px; }
    .gallery-grid { gap: 36px 28px; }
    .gallery-heading h2 { font-size: 23px; }
}
@media (max-width: 640px) {
    .gallery-content { margin-top: 36px; }
    .gallery-heading { margin-bottom: 30px; }
    .gallery-heading h2 { font-size: 20px; line-height: 1.9; }
    .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .gallery-photo { aspect-ratio: auto; }
    .gallery-photo img { height: auto; object-fit: contain; }
    .gallery-item figcaption { font-size: 15px; padding: 13px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-photo img { transition: none; }
    .gallery-photo:hover img { transform: none; }
}
