/* 移行後に足した CSS（今の WordPress には無かった部分）。ポスター博物館のギャラリーと拡大表示。 */
/* FooGallery の既定テンプレート（サムネ 150×200・中央寄せ・すき間 10px・薄い枠・ホバーでキャプション）に寄せた表示 */
.t440-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 1.5em; }
.t440-gallery__item { position: relative; margin: 0; width: 150px; overflow: hidden; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.t440-gallery__item a { display: block; line-height: 0; }
.t440-gallery__item img { display: block; width: 150px; height: 200px; object-fit: cover; transition: transform .3s ease; }
.t440-gallery__item a:hover img, .t440-gallery__item a:focus-visible img { transform: scale(1.1); }
.t440-gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .4em .5em; font-size: .8125rem; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .65); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.t440-gallery__item:hover figcaption, .t440-gallery__item:focus-within figcaption { opacity: 1; }
@media (max-width: 600px) { .t440-gallery__item { width: calc(50% - 5px); } .t440-gallery__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; } }

.t440-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.t440-lightbox[hidden] { display: none; }
.t440-lightbox__fig { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.t440-lightbox__fig img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; background: #fff; }
.t440-lightbox__fig figcaption { margin-top: .6em; color: #fff; font-size: .875rem; text-align: center; }
.t440-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; }
.t440-lightbox button:hover, .t440-lightbox button:focus-visible { background: rgba(255, 255, 255, .35); }
.t440-lightbox__close { top: 12px; right: 12px; }
.t440-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.t440-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
body.t440-lightbox-open { overflow: hidden; }

.t440-form-placeholder { padding: 1em; border: 1px dashed #bbb; text-align: center; color: #666; }
