/* 環境設施：照片相簿與全螢幕燈箱。 */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
    margin-top: 45px;
}
.facility-card { margin: 0; min-width: 0; }
.facility-open {
    display: block;
    position: relative;
    width: 100%;
    padding: 6px;
    background: #fff5e3;
    border: 1px solid #bf9066;
    border-radius: 65px 16px 16px 16px;
    overflow: hidden;
    cursor: zoom-in;
}
.facility-card:nth-child(even) .facility-open { border-radius: 16px 65px 16px 16px; }
.facility-open img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: inherit;
    transition: transform .35s;
}
.facility-open:hover img { transform: scale(1.025); }
.photo-expand {
    display: grid;
    place-items: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #fff5e3;
    color: #874b30;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 25px;
}
.photo-expand svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}
.facility-card figcaption { padding: 18px 8px; font-weight: 700; }
.facility-card figcaption span { color: var(--rust); margin-right: 12px; }
.gallery-hint { color: var(--muted); font-size: 16px; }
.facility-lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 18px 4%;
    border: 0;
    background: #142629f5;
    color: #fff5e3;
    opacity: 0;
    transition: opacity .25s;
}
.facility-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) auto 75px; gap: 12px; }
.facility-lightbox.is-visible { opacity: 1; }
.facility-lightbox::backdrop { background: #142629; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; }
.lightbox-bar p { margin: 0; }
.facility-lightbox button {
    background: #fff5e318;
    border: 1px solid #fff5e366;
    color: #fff5e3;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 28px;
}
.lightbox-stage { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 15px; align-items: center; min-height: 0; }
.lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; opacity: 1; transform: scale(1); transition: opacity .18s, transform .25s; touch-action: pan-y; }
.lightbox-image.is-changing { opacity: 0; transform: scale(.97); }
.lightbox-caption { text-align: center; margin: 0; font-size: 17px; }
.lightbox-thumbs { display: flex; justify-content: safe center; gap: 10px; overflow-x: auto; }
.lightbox-thumbs button { flex: 0 0 80px; width: 80px; height: 60px; padding: 3px; border-radius: 8px; opacity: .55; }
.lightbox-thumbs button[aria-pressed='true'] { opacity: 1; border: 2px solid #f4c777; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
@media (max-width: 760px) {
    .facilities-grid { grid-template-columns: 1fr; gap: 20px; }
    .facility-lightbox { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
    .lightbox-stage { grid-template-columns: 1fr; position: relative; }
    .lightbox-prev, .lightbox-next { position: absolute; z-index: 1; bottom: 5px; }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
}
/* 使用向量圖示，避免文字符號的字型基線造成偏移。 */
.facility-lightbox .lightbox-close,
.facility-lightbox .lightbox-prev,
.facility-lightbox .lightbox-next {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.facility-lightbox button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
