/* Responsive photographs from the official Qshop website. */
.home-hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero-art.home-photo-frame { overflow: clip; border: 0; box-shadow: none; }
.hero-slide { position: absolute; inset: 0; z-index: 0; visibility: hidden; }
.hero-slide.is-active { z-index: 2; visibility: visible; }
.hero-slide.is-leaving { z-index: 1; visibility: visible; }
.hero-slide.is-entering { animation: hero-reveal-next .95s cubic-bezier(.76,0,.24,1) both; }
.hero-slide.is-entering .home-hero-photo { animation: hero-image-next 1.25s cubic-bezier(.22,1,.36,1) both; }
.home-photo-frame[data-direction="previous"] .hero-slide.is-entering { animation-name: hero-reveal-previous; }
.home-photo-frame[data-direction="previous"] .hero-slide.is-entering .home-hero-photo { animation-name: hero-image-previous; }
.home-photo-frame::before { display: none; }
.home-photo-frame::after { content: ""; position: absolute; inset: 60% 0 0; z-index: 3; background: linear-gradient(transparent, #102b26b3); pointer-events: none; }
.hero-slide-caption { position: absolute; left: 24px; bottom: 29px; z-index: 4; max-width: calc(100% - 176px); margin: 0; color: #fff; font-size: 13px; line-height: 1.6; word-break: keep-all; pointer-events: none; }
.hero-slide-controls { position: absolute; right: 18px; bottom: 20px; z-index: 4; display: flex; align-items: center; gap: 2px; color: #fff; }
.hero-slide-controls[hidden], .hero-slide-progress[hidden] { display: none; }
.hero-slide-controls button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; font-size: 18px; transition: background .2s; }
.hero-slide-controls button:hover { background: #ffffff20; }
.hero-slide-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.hero-slide-controls span { min-width: 35px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.hero-slide-progress { position: absolute; inset: auto 24px 16px; height: 1px; z-index: 4; background: #ffffffa6; transform-origin: left; animation: hero-progress-a 3s linear infinite; animation-play-state: paused; pointer-events: none; }
.home-photo-frame[data-cycle="1"] .hero-slide-progress { animation-name: hero-progress-b; }
.home-photo-frame[data-motion="running"] .hero-slide-progress { animation-play-state: running; }
@keyframes hero-reveal-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-reveal-previous { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-image-next { from { transform: translateX(5%) scale(1.12); } to { transform: translateX(0) scale(1); } }
@keyframes hero-image-previous { from { transform: translateX(-5%) scale(1.12); } to { transform: translateX(0) scale(1); } }
@keyframes hero-progress-a { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-progress-b { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .hero-slide-caption { left: 18px; bottom: 27px; max-width: calc(100% - 154px); font-size: 12px; }
  .hero-slide-controls { right: 12px; bottom: 18px; }
  .hero-slide-progress { left: 18px; right: 18px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-entering, .hero-slide.is-entering .home-hero-photo { animation: none; transform: none; clip-path: none; }
  .hero-slide-progress { display: none; }
}
.home-room-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.home-room-card:before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; opacity: 1; background: linear-gradient(180deg, #102a2633, #102a26cc); }
.home-room-card:after { display: none; }
.home-room-card { color: #fff; }
.home-room-number { opacity: .85; }
.experience-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.home-experience-card { display: block; height: 100%; }
.home-experience-card:focus-visible { outline: 2px solid var(--pine); outline-offset: 6px; }
.home-experience-card:hover h3 { color: var(--pine); }
.experience-card-link { display: inline-flex; gap: 16px; margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--pine); color: var(--pine); font-size: 13px; font-weight: 600; }
.content-page .facility-detail { scroll-margin-top: 96px; }
#stay-experiences { scroll-margin-top: 24px; }
.facility-detail:focus { outline: none; }
.facility-navigation { position: sticky; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-bottom: 24px; padding: 12px 0; background: var(--paper); }
.facility-navigation a { padding: 10px 16px; border: 1px solid var(--line); color: var(--pine); font-size: 14px; }
.facility-navigation a:hover, .facility-navigation a[aria-current="location"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.facility-navigation a:focus-visible, .facility-back-link:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.facility-back-link { display: inline-block; margin-top: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--pine); color: var(--pine); font-size: 14px; }
@media (max-width: 760px) { .content-page .facility-detail { scroll-margin-top: 140px; } }
@media (max-width: 380px) { .content-page .facility-detail { scroll-margin-top: 190px; } }
.room-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.room-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.facility-list .facility-with-photo { grid-template-columns: 320px 90px minmax(0, 1fr); align-items: start; }
.facility-list .facility-photo { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
@media (max-width: 760px) {
  .room-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .room-photo-grid img:first-child { grid-column: 1 / -1; }
  .facility-list .facility-photo { max-width: none; margin-bottom: 18px; }
  .facility-list .facility-with-photo { grid-template-columns: 74px minmax(0, 1fr); }
  .facility-list .facility-photo { grid-column: 1 / -1; }
}


.home-album-wrap { max-width: 1180px; margin: 0 auto 60px; padding: 0 24px; }
.photo-album { margin: 24px 0; border: 1px solid #cdd9d1; background: #f4f7f3; }
.photo-album summary { padding: 18px 22px; cursor: pointer; color: var(--pine); font-size: 15px; font-weight: 700; }
.photo-album summary span { margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.photo-album summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.photo-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 22px 22px; }
.photo-album:not([open]) .photo-album-grid { display: none; }
.photo-album-grid a { display: block; min-width: 0; }
.photo-album-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #e7eee7; }
@media (max-width: 760px) {
  .home-album-wrap { padding: 0 20px; margin-bottom: 40px; }
  .photo-album summary { padding: 16px 14px; font-size: 14px; }
  .photo-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 14px; gap: 8px; }
}

/* Main-page gallery: one large moment, a next-photo preview, and direct selections. */
.pension-gallery { max-width: 1180px; margin: 0 auto 32px; padding: 0 24px; scroll-margin-top: 24px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.gallery-heading .eyebrow { margin: 0 0 14px; }
.gallery-heading h2 { margin: 0; font: 700 clamp(30px,3.5vw,44px)/1.3 'Gowun Batang',serif; letter-spacing: -.05em; word-break: keep-all; }
.gallery-heading>p { max-width: 220px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; word-break: keep-all; }
.gallery-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(0,1fr); gap: 24px; }
.gallery-main { min-width: 0; }
.gallery-stage { display: block; position: relative; aspect-ratio: 4 / 3; overflow: clip; background: var(--mist); touch-action: pan-y; }
.gallery-image { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.055) translateX(.5%); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform 1.6s cubic-bezier(.22,1,.36,1); }
.gallery-image.is-active { opacity: 1; transform: scale(1); }
.gallery-image.is-previous { z-index: 1; opacity: 1; transform: scale(1); }
.gallery-enlarge { position: absolute; right: 16px; bottom: 16px; z-index: 3; padding: 8px 12px; border: 1px solid #ffffff70; color: #fff; background: #153f30b3; font-size: 12px; }
.gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; }
.gallery-caption p { margin: 0; color: var(--pine); font-size: 15px; line-height: 1.6; word-break: keep-all; }
.gallery-controls { display: flex; align-items: center; flex: none; gap: 8px; }
.gallery-controls button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--pine); cursor: pointer; }
.gallery-controls button:hover { border-color: var(--pine); background: var(--mist); }
.gallery-controls span { min-width: 52px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.gallery-next-preview { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); background: #eaf0e8; color: var(--pine); text-align: left; cursor: pointer; min-width: 0; }
.gallery-preview-label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .15em; }
.gallery-next-preview img { display: block; width: 100%; flex: 1; min-height: 0; height: 0; object-fit: cover; opacity: .9; transition: opacity .25s; }
.gallery-next-preview:hover img { opacity: 1; }
.gallery-next-preview [data-gallery-next-title] { font: 700 20px/1.5 'Gowun Batang',serif; word-break: keep-all; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 10px; margin-top: 24px; padding: 4px; }
.gallery-thumbnails button { position: relative; padding: 0; min-width: 0; border: 0; background: var(--mist); cursor: pointer; opacity: .65; transition: opacity .2s; }
.gallery-thumbnails button:hover, .gallery-thumbnails button[aria-pressed="true"] { opacity: 1; }
.gallery-thumbnails button[aria-pressed="true"] { outline: 2px solid var(--pine); outline-offset: 2px; }
.gallery-thumbnails img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.gallery-thumbnails button>span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; color: #fff; background: #153f30b3; font-size: 10px; }
.gallery-stage:focus-visible, .gallery-controls button:focus-visible, .gallery-next-preview:focus-visible, .gallery-thumbnails button:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }
.gallery-hint { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.gallery-controls[hidden], .gallery-thumbnails[hidden], .gallery-next-preview[hidden] { display: none; }
@media (max-width: 760px) {
  .pension-gallery { padding: 0 20px; }
  .gallery-heading { display: block; margin-bottom: 24px; }
  .gallery-heading>p { max-width: none; margin-top: 14px; }
  .gallery-layout { display: block; }
  .gallery-caption { align-items: start; }
  .gallery-caption p { font-size: 13px; }
  .gallery-controls { gap: 4px; }
  .gallery-controls button { width: 36px; height: 36px; }
  .gallery-next-preview { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; width: 100%; margin-top: 20px; padding: 14px; }
  .gallery-next-preview img { grid-column: 1; grid-row: 1 / 3; width: 96px; height: 104px; }
  .gallery-preview-label, .gallery-next-preview [data-gallery-next-title] { grid-column: 2; }
  .gallery-preview-label { align-self: end; }
  .gallery-next-preview [data-gallery-next-title] { font-size: 17px; }
  .gallery-thumbnails { display: flex; overflow-x: auto; gap: 10px; padding: 6px 4px 10px; }
  .gallery-thumbnails button { flex: 0 0 82px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-image, .gallery-next-preview img, .gallery-thumbnails button { transition: none; transform: none; } }
