/* 静的化にあたって追加したスタイル（WordPress のプラグインの代わり） */

/* ヘッダーのロゴ（www.p-gyms.jp と同じ画像） */
.l-header__link img { width: 100%; height: auto; }

/* 施設紹介のギャラリー */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; margin-block: 2rem; }
.gallery-grid a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } }

.gallery-box { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .85); }
.gallery-box.is-open { display: flex; }
.gallery-box__img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.gallery-box button { position: absolute; border: 0; background: none; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; }
.gallery-box__close { top: .5rem; right: .5rem; }
.gallery-box__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.gallery-box__next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ロゴの表示サイズ（www.p-gyms.jp の表示に合わせる） */
.l-header__link { width: 7.75rem; }
@media (max-width: 768px) { .l-header__link { width: 6.5rem; } }
