.rdi-gallery {
  padding-block: clamp(4.5rem, 7.5vw, 8rem);
  background: var(--gallery-paper, #f7f7f5);
  color: var(--gallery-ink, #182d2a);
}
.rdi-gallery-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1.25rem;
}
.gallery-invitation {max-width:58ch; margin:.75rem 0 0; color:#3e4650;}
.rdi-gallery-heading h2 {margin: .5rem 0 0;}
.rdi-gallery img,.rdi-photo-dialog img {display:block;}
.rdi-gallery-all,.rdi-gallery-filters button,.rdi-photo-dialog button {font:inherit;cursor:pointer;}
.rdi-gallery-all {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  min-height:46px;
  padding:.72rem 1.05rem;
  border:1px solid #9aa4b0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font-size:.875rem;
  font-weight:600;
}
.rdi-gallery-all:hover,.rdi-gallery-all:focus-visible {background:var(--gallery-ink,#182d2a);color:white;}
.rdi-gallery-all svg {width:16px;height:16px;}
.rdi-gallery-controls {display:flex;justify-content:space-between;align-items:center;gap:1.5rem;border-bottom:1px solid #c8cdd0;margin:clamp(1.5rem,3vw,2.4rem) 0 1.4rem;}
.rdi-gallery-filters {min-width:0;display:flex;gap:1.5rem;align-self:stretch;align-items:stretch;overflow-x:auto;}
.rdi-gallery-search {display:flex;align-items:center;gap:.5rem;flex:0 1 195px;min-width:135px;color:var(--gallery-ink,#182d2a);}
.rdi-gallery-search svg {width:18px;height:18px;flex:none;}
.rdi-gallery-search input {width:100%;min-width:0;min-height:44px;border:0;padding:0 .2rem;background:transparent;color:inherit;font:inherit;font-size:.875rem;}
.rdi-gallery-search input::placeholder {color:#4d5863;opacity:1;}
.rdi-gallery-search input:focus-visible {outline:2px solid currentColor;outline-offset:-2px;}
.rdi-gallery-empty {padding:1.5rem 0;}
.rdi-gallery-empty p {margin:0 0 .75rem;font-size:1rem;}
.rdi-gallery-empty button {border:0;background:transparent;font:inherit;color:inherit;text-decoration:underline;cursor:pointer;padding:.4rem 0;}
.rdi-gallery [hidden] {display:none!important;}
.rdi-gallery-filters button {flex:none;position:relative;padding:.5rem 0 .85rem;margin-bottom:-1px;background:transparent;border:0;border-bottom:2px solid transparent;color:#4d5863;font-size:.875rem;min-height:44px;}
.rdi-gallery-filters button:hover,.rdi-gallery-filters button[aria-pressed="true"] {color:var(--gallery-ink,#182d2a);border-bottom-color:currentColor;}
.rdi-gallery-filters button[aria-pressed="true"] {font-weight:650;}
.rdi-gallery-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.rdi-gallery-grid {display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:clamp(.75rem,1.6vw,1.5rem);}
.rdi-gallery-grid:has(> :last-child:nth-child(2)) {grid-template-columns:1fr 1fr;}
.rdi-gallery-card {min-width:0;display:block;color:inherit;text-decoration:none;}
.rdi-gallery-visual {position:relative;display:block;overflow:hidden;background:#d9d9d3;}
.rdi-gallery-card img {width:100%;height:clamp(170px,18.5vw,320px);object-fit:cover;transition:transform .5s ease;}
.rdi-gallery-caption {display:block;font:500 clamp(1.2rem,1.65vw,1.65rem)/1.12 var(--serif,'Cormorant Garamond',Georgia,serif);margin-top:.78rem;}
.rdi-gallery-expand {position:absolute;bottom:.65rem;right:.65rem;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff85;color:#fff;background:rgba(11,31,58,.65);}
.rdi-gallery-expand svg {width:19px;height:19px;}
@media (hover:hover) {.rdi-gallery-card:hover img {transform:scale(1.035);}}
.rdi-gallery-card:focus-visible,.rdi-gallery-filters button:focus-visible,.rdi-gallery-all:focus-visible,.rdi-photo-dialog button:focus-visible {outline:2px solid currentColor;outline-offset:3px;}
.rdi-gallery details {margin-top:1.5rem;}
.rdi-photo-dialog {
  position:fixed;
  inset:0;
  width:min(1140px,calc(100vw - 3rem));
  max-width:none;
  max-height:calc(100dvh - 2rem);
  margin:auto;
  padding:0;
  border:0;
  background:#182d2a;
  color:#f7f7f5;
  overflow:auto;
  box-shadow:0 20px 80px rgba(0,0,0,.3);
  overscroll-behavior:contain;
  font-family:var(--sans,Montserrat,Arial,sans-serif);
}
.rdi-photo-dialog::backdrop {background:rgba(5,13,24,.86);}
.rdi-photo-shell {padding:clamp(.8rem,2.3vw,1.7rem);}
.rdi-photo-top,.rdi-photo-caption {display:flex;justify-content:space-between;align-items:center;gap:1rem;}
.rdi-photo-top {margin-bottom:.65rem;}
.rdi-photo-top span {font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;}
.rdi-photo-dialog button {display:grid;place-items:center;border:1px solid #e3e5e86b;background:#182d2ae0;color:white;border-radius:0;padding:0;}
.rdi-photo-dialog button:hover {border-color:white;}
.rdi-photo-dialog button svg {width:21px;height:21px;}
.rdi-photo-close,.rdi-photo-prev,.rdi-photo-next {width:44px;height:44px;}
.rdi-photo-stage {position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;background:#0f201e;}
.rdi-photo-stage img {width:100%;height:min(55dvh,570px);object-fit:contain;}
.rdi-photo-prev,.rdi-photo-next {position:absolute;top:50%;transform:translateY(-50%);}
.rdi-photo-prev {left:.6rem;}.rdi-photo-next {right:.6rem;}
.rdi-photo-caption {margin:.85rem 0 .8rem;}
.rdi-photo-caption h2 {margin:0;color:inherit;font:500 clamp(1.55rem,3vw,2.3rem)/1.08 var(--serif,'Cormorant Garamond',Georgia,serif);}
.rdi-photo-caption span {flex:none;font-size:.9rem;}
.rdi-gallery-thumbnails {display:flex;gap:.5rem;overflow:auto;padding:.2rem .2rem .55rem;scrollbar-width:thin;scrollbar-color:#75808f #182d2a;}
.rdi-gallery-thumbnails button {flex:none;width:72px;height:44px;overflow:hidden;border:1px solid transparent;opacity:.72;}
.rdi-gallery-thumbnails button[aria-current="true"] {opacity:1;border:2px solid white;}
.rdi-gallery-thumbnails img {width:100%;height:100%;object-fit:cover;}
body.rdi-gallery-open {overflow:hidden;}
@media(max-width:700px) {
 .rdi-gallery-heading {display:contents;}
 .rdi-gallery .rdi-gallery-inner {display:flex;flex-direction:column;align-items:stretch;}
 .rdi-gallery-heading h2 {margin-top:.5rem;}
 .rdi-gallery-all {order:3;align-self:flex-start;margin-top:1.5rem;}
 .rdi-gallery-controls {flex-direction:column;gap:.6rem;align-items:stretch;margin:.9rem 0 1rem;padding:0 0 .45rem;}
 .rdi-gallery-filters {gap:1rem;scrollbar-width:thin;}
 .rdi-gallery-search {flex:auto;width:100%;padding-inline:.7rem;box-sizing:border-box;border:1px solid #c8cdd0;}
 .rdi-gallery-search input {font-size:1rem;}
 .rdi-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem .75rem;}
 .rdi-gallery-grid .rdi-gallery-card:first-child:not(:nth-last-child(2)) {grid-column:1/-1;}
 .rdi-gallery-card img {height:auto;aspect-ratio:1.46;object-fit:cover;}
 .rdi-gallery-grid .rdi-gallery-card:first-child:not(:nth-last-child(2)) img {aspect-ratio:1.85;}
 .rdi-gallery-caption {font-size:1.2rem;margin-top:.45rem;}
 .rdi-gallery-expand {height:28px;width:28px;right:.45rem;bottom:.45rem;}
 .rdi-photo-dialog {width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);}
 .rdi-photo-stage img {height:min(50dvh,82vw);}
 .rdi-photo-prev {left:.2rem;}.rdi-photo-next {right:.2rem;}
 .rdi-gallery-filters button {font-size:.85rem;}
}
@media(max-height:480px) and (orientation:landscape) {
 .rdi-photo-stage img {height:49dvh;}
 .rdi-photo-shell {padding:.5rem;}
 .rdi-photo-caption {margin:.35rem 0;}
 .rdi-gallery-thumbnails button {width:64px;height:36px;}
}
@media(prefers-reduced-motion:reduce) {.rdi-gallery-card img {transition:none;}}
@media(max-width:700px){
  .rdi-gallery-filters {flex-wrap:wrap;gap:0 1.05rem;overflow:visible}
  .rdi-gallery-filters button {margin:0;padding:.4rem 0}
}

.rdi-gallery .rdi-gallery-inner {width:min(90%, 76rem);margin-inline:auto;}
.rdi-gallery-list summary {cursor:pointer;text-decoration:underline;text-underline-offset:.24em;}
.rdi-gallery-list ul {list-style:disc;padding-inline-start:1.3rem;}
.rdi-gallery-list a {color:inherit;text-decoration:underline;}
.rdi-gallery-list ul li {margin:.5rem 0;}
.rdi-photo-dialog:not([open]) {display:none;}
.rdi-photo-dialog {border-radius:0;}
@media(min-width:701px) {
 .rdi-gallery-heading>div {min-width:0;max-width:65ch}
 .rdi-gallery-all {flex:none}
}
.rdi-gallery-grid:has(>:only-child) {grid-template-columns:minmax(0,1fr);}
