/* Selected photographs: same gallery language, flexible counts per audience. */
.memory-mosaic.selected-memory-mosaic { height:auto; grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:clamp(75px,7.5vw,110px); grid-auto-flow:dense; }
.selected-memory-mosaic .memory-tile { grid-area:auto; grid-column:span 2; grid-row:span 2; border-radius:var(--radius-lg); }
.selected-memory-mosaic .memory-tile:nth-of-type(5n+1) { grid-row:span 3; }
.selected-memory-mosaic .memory-tile:nth-of-type(7n+4) { grid-column:span 2; grid-row:span 3; }
.selected-memory-mosaic .memory-statement { grid-area:auto; grid-column:1/-1; align-self:end; margin:1.5rem 0 0; max-width:20ch; }
@media(max-width:900px) { .memory-mosaic.selected-memory-mosaic { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:100px; } }
@media(max-width:649px) { .memory-mosaic.selected-memory-mosaic { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:100px; gap:12px; } .selected-memory-mosaic .memory-tile,.selected-memory-mosaic .memory-tile:nth-of-type(7n+4) { grid-column:span 1; grid-row:span 2; border-radius:var(--radius-md); } .selected-memory-mosaic .memory-tile:nth-of-type(5n+1) { grid-row:span 3; } }

/* Schools: a staggered editorial composition, inspired by the supplied reference. */
#school-memories[data-layout="editorial"] { display:grid; grid-template-columns:minmax(0,1fr); }
#school-memories[data-layout="editorial"]>h2 { grid-area:1/1; align-self:start; z-index:1; width:36%; max-width:14ch; font-size:clamp(2rem,3.7vw,3.7rem); padding-top:24px; }
#school-memories[data-layout="editorial"] .selected-memory-mosaic { grid-area:1/1; margin-top:0; height:clamp(680px,66vw,960px); grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:repeat(12,minmax(0,1fr)); grid-auto-flow:row; gap:clamp(10px,1.2vw,18px); }
#school-memories[data-layout="editorial"] .memory-tile { min-height:0; grid-column:auto; grid-row:auto; border-radius:var(--radius-lg); }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(1) { grid-area:7/1/13/2; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(2) { grid-area:5/2/9/3; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(3) { grid-area:9/2/13/3; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(4) { grid-area:4/3/8/4; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(5) { grid-area:8/3/13/4; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(6) { grid-area:7/4/13/5; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(7) { grid-area:1/5/5/6; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(8) { grid-area:5/5/10/6; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(9) { grid-area:10/5/13/6; }
#school-memories[data-layout="editorial"] .memory-tile:nth-of-type(10) { grid-area:3/4/7/5; }
#school-memories[data-layout="editorial"] .memory-statement { grid-area:13/1/14/6; font-size:clamp(1.6rem,2.4vw,2.5rem); max-width:none; margin:20px 0 0; }
@media(max-width:900px) {
 #school-memories[data-layout="editorial"]>h2 { position:static; grid-area:auto; width:auto; max-width:22ch; padding-top:0; margin-bottom:2rem; }
 #school-memories[data-layout="editorial"] .selected-memory-mosaic { grid-area:auto; height:auto; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:100px; grid-auto-flow:dense; }
 #school-memories[data-layout="editorial"] .memory-tile:nth-of-type(n) { grid-area:auto; grid-column:span 2; grid-row:span 2; }
 #school-memories[data-layout="editorial"] .memory-tile:nth-of-type(3n+1) { grid-row:span 3; }
 #school-memories[data-layout="editorial"] .memory-statement { grid-area:auto; grid-column:1/-1; }
}
@media(max-width:649px) {
 #school-memories[data-layout="editorial"] .selected-memory-mosaic { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:80px; }
 #school-memories[data-layout="editorial"] .memory-tile:nth-of-type(n) { grid-column:span 1; border-radius:var(--radius-md); }
}

/* Gallery title and statement share the open upper-left area. */
#school-memories[data-layout="editorial"]>h2 { width:76%; max-width:none; white-space:nowrap; font-size:clamp(1.8rem,3.7vw,3.7rem); }
#school-memories[data-layout="editorial"]>.memory-statement { grid-area:1/1; align-self:start; z-index:1; margin:calc(24px + clamp(1.8rem,3.7vw,3.7rem) * 1.06 + 18px) 0 0; max-width:70%; font-size:clamp(1.3rem,2.2vw,2rem); color:var(--color-accent); }
@media(max-width:900px) {
 #school-memories[data-layout="editorial"]>h2 { grid-area:auto; width:100%; margin-bottom:0; padding-top:0; font-size:clamp(1.15rem,4.7vw,2.6rem); }
 #school-memories[data-layout="editorial"]>.memory-statement { grid-area:auto; margin:14px 0 2rem; max-width:100%; font-size:clamp(1.1rem,3.6vw,1.8rem); }
}

/* One statement; photographs remain clean, with accessible names retained. */
#school-memories[data-layout="editorial"]>#school-memories-statement { grid-area:1/1; align-self:start; width:76%; max-width:none; white-space:normal; margin:80px 0 0; padding:0; font-size:clamp(1.7rem,3.288vw,3rem); line-height:1.12; color:var(--color-accent); }
#school-memories .memory-caption { display:none; }
@media(max-width:900px) { #school-memories[data-layout="editorial"]>#school-memories-statement { grid-area:auto; width:100%; margin:0 0 2rem; font-size:clamp(1.7rem,4.8vw,2.65rem); } }

/* Schools statement: larger, with a smaller top inset. */
#school-memories[data-layout="editorial"]>#school-memories-statement { margin-top:23px; font-size:clamp(2rem,4.2981vw,4rem); }
@media(max-width:900px) { #school-memories[data-layout="editorial"]>#school-memories-statement { margin-top:0; font-size:clamp(1.8rem,4.8vw,2.8rem); } }
/* Hotel memories arranged as upright photographs in separated circular sectors. */
.hotel-memory-circle { position:relative; width:min(100%,920px); aspect-ratio:1; margin:3rem auto 0; isolation:isolate; }
.radial-clip-defs { position:absolute; pointer-events:none; }
.hotel-memory-circle .radial-memory { position:absolute; display:block; min-height:0; min-width:0; padding:0; border:0; border-radius:0; background:var(--color-primary); overflow:hidden; transition:filter .25s ease; }
.hotel-memory-circle .radial-memory img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.hotel-memory-circle .radial-memory:hover img { transform:scale(1.06); }
.hotel-memory-circle .radial-memory:focus-visible { filter:brightness(1.2) drop-shadow(0 0 4px #B82D24); outline:3px solid #B82D24; outline-offset:-4px; }
.hotel-memory-center { position:absolute; left:27%; top:50%; transform:translateY(-50%); width:46%; text-align:center; color:var(--color-accent); font-size:clamp(1.2rem,3vw,2.8rem); line-height:1.08; letter-spacing:-.045em; pointer-events:none; margin:0; }
@media(max-width:649px) { .hotel-memory-circle { width:100%; margin-top:2rem; } .hotel-memory-center { font-size:clamp(.95rem,4.2vw,1.6rem); } }
@media(prefers-reduced-motion:reduce) { .hotel-memory-circle .radial-memory,.hotel-memory-circle .radial-memory img { transition:none; } .hotel-memory-circle .radial-memory:hover img { transform:none; } }

/* Only the outer crown rotates; the central statement stays still. */
.hotel-memory-orbit { position:absolute; inset:0; transform-origin:50% 50%; }
.hotel-orbit-toggle { position:absolute; bottom:0; right:0; width:44px; height:44px; border:1px solid var(--color-line); border-radius:50%; background:var(--color-page); color:var(--color-primary); cursor:pointer; display:grid; place-items:center; font-size:20px; }
.hotel-orbit-toggle[hidden] { display:none; }
.hotel-orbit-toggle:focus-visible { outline:2px solid var(--color-accent); outline-offset:4px; }
@media(prefers-reduced-motion:no-preference) { .hotel-memory-orbit { animation:hotel-memory-turn 80s linear infinite; } .hotel-memory-circle:hover .hotel-memory-orbit,.hotel-memory-circle:focus-within .hotel-memory-orbit,.hotel-memory-circle.orbit-paused .hotel-memory-orbit { animation-play-state:paused; } }
@keyframes hotel-memory-turn { from { transform:rotate(0); } to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .hotel-memory-orbit { animation:none; } }

/* Hotel: an editorial photo cluster, assembled from a central stack on entry. */
.hotel-collage-statement { margin:1rem 0 2.5rem; color:var(--color-accent); font-size:clamp(1.8rem,3.3vw,3.4rem); letter-spacing:-.045em; line-height:1.1; }
.hotel-memory-collage { display:grid; position:relative; grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:repeat(10,minmax(0,1fr)); gap:clamp(10px,1.2vw,18px); width:min(100%,1000px); aspect-ratio:1.32; margin:0 auto; }
.hotel-memory-collage .hotel-collage-photo { grid-area:auto; border-radius:var(--radius-md); min-width:0; min-height:0; transform-origin:center; overflow:hidden; }
.hotel-memory-collage .hotel-photo-1 { grid-area:4/5/8/9; }
.hotel-memory-collage .hotel-photo-2 { grid-area:1/3/4/5; }
.hotel-memory-collage .hotel-photo-3 { grid-area:1/5/4/8; }
.hotel-memory-collage .hotel-photo-4 { grid-area:2/8/4/11; }
.hotel-memory-collage .hotel-photo-5 { grid-area:4/2/6/5; }
.hotel-memory-collage .hotel-photo-6 { grid-area:4/9/7/11; }
.hotel-memory-collage .hotel-photo-7 { grid-area:6/1/8/4; }
.hotel-memory-collage .hotel-photo-8 { grid-area:8/3/10/7; }
.hotel-memory-collage .hotel-photo-9 { grid-area:7/9/9/13; }
.hotel-memory-collage .hotel-photo-10 { grid-area:8/7/11/9; }
.hotel-memory-collage.collage-ready:not(.is-assembled) .hotel-collage-photo { opacity:0; }
.hotel-memory-collage .hotel-collage-photo img { width:100%; height:100%; display:block; object-fit:cover; }
@media(max-width:649px) { .hotel-memory-collage { width:100%; aspect-ratio:.92; gap:8px; } .hotel-memory-collage .hotel-collage-photo { border-radius:12px; } .hotel-collage-statement { margin-bottom:2rem; } }
@media(prefers-reduced-motion:reduce) { .hotel-memory-collage.collage-ready .hotel-collage-photo { opacity:1!important; transform:none!important; } }

/* Image-only viewer for Schools, Hotels and Private galleries. */
#school-gallery-dialog .gallery-full-caption { display:none; }
.curved-carousel-track .memory-caption { display:none; }

/* Expanded Hotel composition: uses the full content width, with fourteen photos. */
#school-gallery[data-layout="collage"] .hotel-collage-statement { margin:0 0 2.5rem; }
.hotel-memory-collage { width:100%; aspect-ratio:1.6; grid-template-rows:repeat(12,minmax(0,1fr)); }
.hotel-memory-collage .hotel-photo-1 { grid-area:4/5/9/9; }
.hotel-memory-collage .hotel-photo-2 { grid-area:1/1/4/4; }
.hotel-memory-collage .hotel-photo-3 { grid-area:1/4/4/8; }
.hotel-memory-collage .hotel-photo-4 { grid-area:1/8/4/11; }
.hotel-memory-collage .hotel-photo-5 { grid-area:4/1/6/5; }
.hotel-memory-collage .hotel-photo-6 { grid-area:4/9/7/11; }
.hotel-memory-collage .hotel-photo-7 { grid-area:6/1/9/5; }
.hotel-memory-collage .hotel-photo-8 { grid-area:9/1/13/4; }
.hotel-memory-collage .hotel-photo-9 { grid-area:7/9/10/13; }
.hotel-memory-collage .hotel-photo-10 { grid-area:9/4/13/7; }
.hotel-memory-collage .hotel-photo-11 { grid-area:9/7/13/9; }
.hotel-memory-collage .hotel-photo-12 { grid-area:10/9/13/13; }
.hotel-memory-collage .hotel-photo-13 { grid-area:1/11/4/13; }
.hotel-memory-collage .hotel-photo-14 { grid-area:4/11/7/13; }
@media(max-width:649px) {
 .hotel-memory-collage { aspect-ratio:auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:110px; grid-auto-flow:dense; }
 .hotel-memory-collage .hotel-collage-photo { grid-area:auto; grid-row:span 2; }
 .hotel-memory-collage .hotel-collage-photo:nth-child(4n+1) { grid-row:span 3; }
}

/* Rebalance the right side after removing the two selected Hotel photos. */
.hotel-memory-collage .hotel-photo-13 { grid-area:1/8/4/13; }
.hotel-memory-collage .hotel-photo-6 { grid-area:4/9/7/13; }
@media(max-width:649px) {
 .hotel-memory-collage .hotel-photo-13,.hotel-memory-collage .hotel-photo-6 { grid-area:auto; grid-row:span 2; }
}

/* Hotel: airy, interlocking composition inspired by the photographic reference.
   Sixteen columns keep the asymmetry proportional at every desktop width. */
@media(min-width:650px) {
 .hotel-memory-collage { grid-template-columns:repeat(16,minmax(0,1fr)); grid-template-rows:repeat(14,minmax(0,1fr)); aspect-ratio:1.45; gap:clamp(8px,.9vw,14px); }
 .hotel-memory-collage .hotel-collage-photo { border-radius:clamp(8px,1vw,16px); }
 .hotel-memory-collage .hotel-photo-1 { grid-area:2/5/7/10; }
 .hotel-memory-collage .hotel-photo-2 { grid-area:1/10/4/13; }
 .hotel-memory-collage .hotel-photo-3 { grid-area:5/10/10/15; }
 .hotel-memory-collage .hotel-photo-5 { grid-area:5/2/7/5; }
 .hotel-memory-collage .hotel-photo-6 { grid-area:8/6/12/10; }
 .hotel-memory-collage .hotel-photo-7 { grid-area:8/1/12/6; }
 .hotel-memory-collage .hotel-photo-8 { grid-area:12/7/15/10; }
 .hotel-memory-collage .hotel-photo-9 { grid-area:10/10/15/17; }
 .hotel-memory-collage .hotel-photo-10 { grid-area:4/13/5/15; }
 .hotel-memory-collage .hotel-photo-11 { grid-area:12/3/15/7; }
 .hotel-memory-collage .hotel-photo-12 { grid-area:7/15/10/17; }
 .hotel-memory-collage .hotel-photo-13 { grid-area:1/6/2/10; }
}
/* Schools: each photo enters only when it approaches the viewport. */
#school-memories .memory-tile.school-photo-waiting { opacity:0; }
@media(prefers-reduced-motion:reduce) { #school-memories .memory-tile.school-photo-waiting { opacity:1; } }

/* Balanced Hotel mosaic: every photograph has at least three rows of height. */
@media(min-width:650px) {
 .hotel-memory-collage { grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:repeat(15,minmax(0,1fr)); aspect-ratio:1.3; }
 .hotel-memory-collage .hotel-photo-13 { grid-area:1/2/4/6; }
 .hotel-memory-collage .hotel-photo-2 { grid-area:1/6/5/9; }
 .hotel-memory-collage .hotel-photo-10 { grid-area:2/9/5/13; }
 .hotel-memory-collage .hotel-photo-1 { grid-area:4/2/9/6; }
 .hotel-memory-collage .hotel-photo-5 { grid-area:5/6/8/9; }
 .hotel-memory-collage .hotel-photo-3 { grid-area:5/9/10/13; }
 .hotel-memory-collage .hotel-photo-7 { grid-area:9/1/12/5; }
 .hotel-memory-collage .hotel-photo-6 { grid-area:8/6/12/9; }
 .hotel-memory-collage .hotel-photo-8 { grid-area:12/1/15/5; }
 .hotel-memory-collage .hotel-photo-12 { grid-area:10/9/13/13; }
 .hotel-memory-collage .hotel-photo-11 { grid-area:12/5/15/9; }
 .hotel-memory-collage .hotel-photo-9 { grid-area:13/9/16/13; }
}

/* Hotel diagonal ribbons: clipped photographs, never skewed or distorted.
   Overlapping grid boxes share parallel cuts while the visible photos stay separate. */
@media(min-width:650px) {
 .hotel-memory-collage { grid-template-columns:repeat(16,minmax(0,1fr)); grid-template-rows:1.05fr 1fr 1.05fr 1fr; aspect-ratio:1.24; gap:12px 0; }
 .hotel-memory-collage .hotel-collage-photo { border-radius:0; clip-path:polygon(1% 0,82% 0,99% 100%,18% 100%); }
 .hotel-memory-collage .hotel-collage-photo:focus-visible { outline:none; filter:brightness(1.16); }
 .hotel-memory-collage .hotel-collage-photo:focus-visible::after { content:''; position:absolute; inset:0; background:rgb(184 45 36 / .2); pointer-events:none; }
 .hotel-memory-collage .hotel-photo-13 { grid-area:1/1/2/7; }
 .hotel-memory-collage .hotel-photo-2 { grid-area:1/6/2/12; }
 .hotel-memory-collage .hotel-photo-10 { grid-area:1/11/2/17; }
 .hotel-memory-collage .hotel-photo-1 { grid-area:2/1/3/7; }
 .hotel-memory-collage .hotel-photo-5 { grid-area:2/6/3/12; }
 .hotel-memory-collage .hotel-photo-3 { grid-area:2/11/3/17; }
 .hotel-memory-collage .hotel-photo-7 { grid-area:3/1/4/7; }
 .hotel-memory-collage .hotel-photo-6 { grid-area:3/6/4/12; }
 .hotel-memory-collage .hotel-photo-12 { grid-area:3/11/4/17; }
 .hotel-memory-collage .hotel-photo-8 { grid-area:4/1/5/7; }
 .hotel-memory-collage .hotel-photo-11 { grid-area:4/6/5/12; }
 .hotel-memory-collage .hotel-photo-9 { grid-area:4/11/5/17; }

}
@media(max-width:649px) {
 .hotel-memory-collage { gap:10px 0; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hotel-memory-collage .hotel-collage-photo { border-radius:0; clip-path:polygon(0 0,90% 0,100% 100%,10% 100%); }
}

/* Reference composition: five photographic planes around a fixed brand ribbon.
   Extra gallery photos remain available via the viewer's arrows. */
.hotel-memory-collage { display:block; width:100%; aspect-ratio:12/7; margin:0; isolation:isolate; }
.hotel-memory-collage .hotel-collage-photo { position:absolute; grid-area:auto; border-radius:0; min-height:0; padding:0; }
.hotel-memory-collage .hotel-gallery-extra { display:none; }
#school-gallery[data-layout="collage"] .hotel-collage-statement { position:absolute; z-index:3; left:0; top:32.857%; width:38%; height:31.429%; margin:0; padding:3% 8% 3% 2.2%; display:flex; align-items:center; background:#113656; color:var(--color-on-dark); font-size:clamp(1.1rem,3vw,3.3rem); line-height:1.08; clip-path:polygon(0 0,51% 0,100% 100%,0 100%); }
.hotel-memory-collage .hotel-photo-13 { left:20.0000%; top:0.0000%; width:53.3333%; height:32.8571%; clip-path:polygon(0.0000% 0.0000%,64.0625% 0.0000%,100.0000% 100.0000%,35.9375% 100.0000%); }
.hotel-memory-collage .hotel-photo-2 { left:6.6667%; top:18.5714%; width:40.0000%; height:32.8571%; clip-path:polygon(0.0000% 0.0000%,52.0833% 0.0000%,100.0000% 100.0000%,47.9167% 100.0000%); }
.hotel-memory-collage .hotel-photo-1 { left:39.1667%; top:32.8571%; width:60.8333%; height:31.4286%; clip-path:polygon(0.0000% 0.0000%,100.0000% 0.0000%,100.0000% 100.0000%,30.1370% 100.0000%); }
.hotel-memory-collage .hotel-photo-7 { left:25.8333%; top:51.4286%; width:40.0000%; height:32.8571%; clip-path:polygon(0.0000% 0.0000%,52.0833% 0.0000%,100.0000% 100.0000%,47.9167% 100.0000%); }
.hotel-memory-collage .hotel-photo-3 { left:57.5000%; top:64.2857%; width:42.5000%; height:35.7143%; clip-path:polygon(0.0000% 0.0000%,100.0000% 0.0000%,100.0000% 100.0000%,49.0196% 100.0000%); }

.hotel-memory-collage .hotel-photo-13 img { object-position:center 55%; }
.hotel-memory-collage .hotel-photo-2 img { object-position:center; }
.hotel-memory-collage .hotel-photo-1 img { object-position:center 60%; }
.hotel-memory-collage .hotel-photo-3 img { object-position:60% center; }
@media(max-width:649px) {
 .hotel-memory-collage { aspect-ratio:12/8; }
 #school-gallery[data-layout="collage"] .hotel-collage-statement { font-size:clamp(.72rem,3.7vw,1.4rem); padding-right:12%; }
}
