/* Home gallery reference; original photographs and Fancybox sources are retained. */
.card.home-gallery-reference { position: relative; isolation: isolate; container-type: inline-size; min-width: 0; overflow: hidden; border: 1px solid #fff; border-radius: 22px; background: #fffbfc; color: #080c1a; box-shadow: 0 6px 22px rgb(131 48 59 / .08); scroll-margin-top: 145px; }
.home-gallery-reference .home-gallery-reference__header { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 16px 20px; border: 0; background: transparent; }
.home-gallery-reference .card-title { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; color: #080c1a; font-size: clamp(18px,3.55cqw,26px); font-weight: 800; line-height: 1.17; letter-spacing: -.035em; }
.home-gallery-reference .card-title em { color: #bd0012; font-style: normal; }
.home-gallery-reference__icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; background: #f9e1e4; color: #af0818; }
.home-gallery-reference__icon svg { width: 27px; height: 27px; stroke-width: 1.8; }
.home-gallery-reference .home-gallery-count--link { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transform: none; }
.home-gallery-reference .home-gallery-count--link:hover { gap: 8px; background: transparent; color: #fff; transform: none; }
.home-gallery-reference__all-arrow { display: grid; place-items: center; width: 31px; height: 31px; border: 1.5px solid #fff; border-radius: 50%; }
.home-gallery-reference .home-gallery-reference__all-arrow svg { width: 23px; height: 23px; stroke-width: 1.8; }
.home-gallery-reference .home-gallery-count--link:hover .home-gallery-reference__all-arrow { background: rgb(255 255 255 / .15); }
.home-gallery-reference .home-gallery-count--link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.home-gallery-reference .home-gallery-reference__body { position: relative; z-index: 1; padding: 0 16px 28px; }
.home-gallery-reference .home-gallery-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: auto; grid-auto-flow: row; align-items: start; gap: 8px; }
.home-gallery-reference .home-gallery-grid > .home-gallery-item { position: relative; grid-column: auto; grid-row: auto; align-self: start; width: 100%; height: auto; min-width: 0; aspect-ratio: 1.3; overflow: hidden; border: 0; border-radius: 12px; background: #eee8eb; box-shadow: none; transform: none; }
.home-gallery-reference .home-gallery-item picture { display: block; width: 100%; height: 100%; }
.home-gallery-reference .home-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; transition: none; }
.home-gallery-reference .home-gallery-item:hover { transform: none; box-shadow: none; }
.home-gallery-reference .home-gallery-item:hover img { transform: none; }
.home-gallery-reference .home-gallery-item::after { display: none; }
.home-gallery-reference .home-gallery-zoom { top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / .92); color: #b40719; backdrop-filter: none; box-shadow: none; transform: none; }
.home-gallery-reference .home-gallery-zoom :is(i,svg) { width: 15px; height: 15px; }
.home-gallery-reference .home-gallery-item:is(:hover,:focus-visible) .home-gallery-zoom { opacity: 1; transform: none; }
.home-gallery-reference .home-gallery-item:focus-visible { outline: 2px solid #b40719; outline-offset: 3px; }
.home-gallery-reference .home-gallery-grid.is-collapsed > .home-gallery-item--extra { display: none; }
.home-gallery-reference__top-art, .home-gallery-reference__bottom-art { position: absolute; z-index: 0; display: block; pointer-events: none; }
.home-gallery-reference__top-art { top: -1px; right: -1px; width: 65%; height: 80px; background: url('/images/gallery/reference-top-20261204.svg') right top / 100% 100% no-repeat; }
.home-gallery-reference__bottom-art { bottom: -1px; right: -1px; width: 50%; height: 28px; background: url('/images/gallery/reference-bottom-20261204.svg') right bottom / 100% 100% no-repeat; }
@container (min-width:700px) { .home-gallery-reference .home-gallery-reference__header { padding: 20px 24px 24px; } .home-gallery-reference .home-gallery-reference__body { padding-inline: 24px; padding-bottom: 34px; } .home-gallery-reference__icon { flex-basis: 44px; height: 44px; border-radius: 14px; } .home-gallery-reference__icon svg { width: 31px; height: 31px; } .home-gallery-reference .home-gallery-count--link { font-size: 15px; } .home-gallery-reference__all-arrow { width: 35px; height: 35px; } .home-gallery-reference .home-gallery-grid { gap: 10px; } .home-gallery-reference .home-gallery-grid > .home-gallery-item { border-radius: 15px; } .home-gallery-reference__top-art { height: 95px; } }
@container (max-width:540px) { .home-gallery-reference .home-gallery-reference__header { gap: 10px; padding: 16px 12px 18px; } .home-gallery-reference .card-title { font-size: 18px; gap: 8px; } .home-gallery-reference__icon { flex-basis: 34px; height: 36px; } .home-gallery-reference__icon svg { width: 25px; height: 25px; } .home-gallery-reference__all-label { display: none; } .home-gallery-reference .home-gallery-count--link { justify-content: center; width: 40px; height: 40px; } .home-gallery-reference__all-arrow { width: 32px; height: 32px; } .home-gallery-reference .home-gallery-reference__body { padding-inline: 12px; padding-bottom: 24px; } .home-gallery-reference .home-gallery-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; } .home-gallery-reference__top-art { width: 34%; height: 74px; } }
@container (max-width:400px) { .home-gallery-reference .home-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; } .home-gallery-reference .home-gallery-grid > .home-gallery-item { border-radius: 10px; } }
@container (max-width:320px) { .home-gallery-reference__icon { display: none; } .home-gallery-reference__top-art { width: 24%; } .home-gallery-reference .home-gallery-grid { gap: 6px; } .home-gallery-reference .home-gallery-grid > .home-gallery-item { border-radius: 9px; } }
/* Preserve the approved compact phone gallery; all photographs remain in the full gallery. */
@media (max-width:480px) { .home-gallery-reference .home-gallery-grid.is-collapsed > .home-gallery-item:nth-child(n+16) { display: none; } }
