#galeria.albums-section {
  padding:clamp(32px,4.7vw,76px) var(--pad) clamp(34px,4vw,62px);
  border-block:1px solid #8a9cc036;
}
.album-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:clamp(18px,2vw,30px); }
.album-heading h2 { font:600 clamp(38px,4.4vw,70px)/1.05 var(--display); letter-spacing:-.045em; margin:0; }
.album-film { padding-block:8px; color:#f8d451; font-size:.9375rem; text-decoration:underline; text-underline-offset:5px; }
.album-shelf { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(20px,3.8vw,60px); }
.album-cover { display:block; min-width:0; color:#f7f4e8; text-decoration:none; }
.album-prints { isolation:isolate; position:relative; display:block; padding:12px 6px 0; }
.album-prints img { display:block; width:100%; aspect-ratio:2.4; object-fit:cover; border-radius:2px; }
.album-prints .album-back {
  position:absolute; top:6px; left:3.2%; width:93%; z-index:-1; opacity:.76;
  transform:rotate(-1.7deg); transform-origin:50% 75%;
}
.album-cover:nth-child(2) .album-back { transform:rotate(1.7deg); }
.album-front { box-shadow:0 6px 12px #0004; }
.album-caption {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:14px 6px 0; padding-top:12px; border-top:1px solid #8d9ec263;
}
.album-caption strong { display:block; font:550 clamp(22px,2.4vw,39px)/1.1 var(--display); letter-spacing:-.035em; }
.album-caption small { display:block; font-size:.875rem; margin-top:4px; color:#d8e4f6; }
.album-enlarge {
  flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:50%;
  border:1px solid #768bb5; background:#31589e; color:#ffe176; font:400 25px/1 sans-serif;
}
.album-cover:is(:focus-visible,:hover) .album-caption { border-color:#efca42; }
.album-cover:focus-visible, .album-switch button:focus-visible, .album-film:focus-visible { outline:2px solid #ffdd60; outline-offset:4px; }
.discipline-bar > a { font:inherit; letter-spacing:inherit; color:inherit; text-decoration:underline; text-decoration-color:#cfa84280; text-underline-offset:4px; }
.discipline-bar > a:hover { color:#ffda4c; }
#photo-dialog { width:min(1080px,calc(100% - 28px)); overflow:auto; overscroll-behavior:contain; }
.album-toolbar { min-height:56px; padding:6px 68px 6px 14px; display:flex; align-items:center; background:#173571; }
.album-switch { display:flex; gap:5px; }
.album-switch button { min-height:44px; padding:8px 14px; border-radius:3px; font-size:.9rem; font-weight:600; color:#dde8fc; background:transparent; border:1px solid transparent; }
.album-switch button[aria-pressed=true] { color:#fff9dd; background:#365eaa; border-color:#8194bb; box-shadow:inset 0 -2px #efd35c; }
#photo-dialog .dialog-close { top:6px; right:8px; width:44px; height:44px; }
#photo-dialog #photo-full { display:block; height:min(60svh,630px); max-height:none; object-fit:contain; touch-action:pan-y pinch-zoom; user-select:none; }
#photo-dialog figcaption { padding:14px 20px; gap:10px; }
#photo-dialog .eyebrow { font-size:.75rem; }
#photo-dialog .photo-controls { flex-shrink:0; }
@media (prefers-reduced-motion:no-preference) {
  body:not([data-motion=paused]) .album-prints img { transition:transform .42s cubic-bezier(.18,.72,.2,1); }
  @media(hover:hover) {
    body:not([data-motion=paused]) .album-cover:hover .album-front { transform:translateY(-3px); }
    body:not([data-motion=paused]) .album-cover:hover .album-back { transform:translateY(-4px) rotate(-3deg); }
    body:not([data-motion=paused]) .album-cover:nth-child(2):hover .album-back { transform:translateY(-4px) rotate(3deg); }
  }
  body:not([data-motion=paused]) #photo-dialog[open] { animation:album-open .28s cubic-bezier(.18,.72,.2,1); }
}
@keyframes album-open { from { opacity:.35; transform:translateY(9px) scale(.975); } to { opacity:1; transform:none; } }
@media(max-width:640px) {
  .album-shelf { gap:14px; }
  .album-prints { padding:8px 1px 0; }
  .album-prints img { aspect-ratio:1.35; }
  .album-heading { margin-bottom:14px; }
  .album-caption { margin:10px 1px 0; padding-top:10px; align-items:flex-start; }
  .album-caption strong { font-size:clamp(19px,5vw,27px); }
  .album-caption small { font-size:.8rem; }
  .album-enlarge { width:25px; height:25px; font-size:17px; }
  .album-film { font-size:.8125rem; }
  #photo-dialog figcaption { align-items:stretch; }
  #photo-dialog .photo-controls { justify-content:center; }
  #photo-dialog #photo-full { height:min(57svh,520px); }
  #photo-dialog figcaption strong { font-size:1.125rem; }
  .album-toolbar { padding-left:6px; }
  .album-switch button { padding-inline:9px; }
}
@media(max-width:370px) { .album-enlarge { display:none; } }
@media(max-height:500px) {
  #photo-dialog #photo-full { height:44svh; }
  #photo-dialog figcaption { flex-direction:row; align-items:center; }
}
