/* Native disclosure keeps large photo collections compact without JavaScript. */
body.mc26-portal .mc-profile #foto>.mc-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.mc26-portal .mc-profile #foto>.mc-section-heading h2{margin:0!important}
body.mc26-portal .mc-profile #foto>.mc-section-heading .mc-muted{white-space:nowrap}
body.mc26-portal .mc-gallery-more{margin-top:18px;border:0}
body.mc26-portal .mc-gallery-more>summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 18px;border:1px solid var(--mc-pink);border-radius:7px;background:#fff;color:var(--mc-pink);font-size:14px;font-weight:700;line-height:1.4;list-style:none;cursor:pointer}
body.mc26-portal .mc-gallery-more>summary::-webkit-details-marker{display:none}
body.mc26-portal .mc-gallery-more>summary:hover{background:var(--mc-blush)}
body.mc26-portal .mc-gallery-more>summary:focus-visible{outline:2px solid var(--mc-pink);outline-offset:4px}
body.mc26-portal .mc-gallery-more>summary svg{width:18px;height:18px;flex-shrink:0;transition:transform .2s}
body.mc26-portal .mc-gallery-more>summary .mc-gallery-collapse{display:none}
body.mc26-portal .mc-gallery-more[open]>summary .mc-gallery-expand{display:none}
body.mc26-portal .mc-gallery-more[open]>summary .mc-gallery-collapse{display:inline}
body.mc26-portal .mc-gallery-more[open]>summary svg{transform:rotate(180deg)}
body.mc26-portal .mc-gallery-more>.mc-photo-grid{margin-top:14px}
body.mc26-portal .mc-gallery-preview-note{margin:0 0 14px!important;color:var(--mc-muted);font-size:13px;line-height:1.6}
@media(max-width:600px){
  body.mc26-portal .mc-gallery-more{margin-top:14px}
  body.mc26-portal .mc-gallery-more>summary{width:100%;font-size:13px}
  body.mc26-portal .mc-gallery-preview-note{font-size:12px}
}

/* One photograph at a time, with touch-sized controls and a stable background. */
html.mc-gallery-open{overflow:hidden}
body.mc26-portal.mc-gallery-open{position:fixed;top:var(--mc-gallery-scroll-top,0);left:0;right:0;overflow:hidden}
body.mc26-portal .mc-gallery-refined{box-sizing:border-box;width:min(1100px,96vw);height:min(850px,94vh);height:min(850px,94dvh);max-width:96vw;max-height:none;padding:0;border:1px solid #ffffff1f;border-radius:16px;background:#171518;color:#fff;overflow:hidden}
body.mc26-portal .mc-gallery-refined[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:0}
body.mc26-portal .mc-gallery-refined .mc-gallery-dialog-top{padding:12px 18px;font-size:14px;line-height:1.4;border-bottom:1px solid #ffffff18;gap:12px}
body.mc26-portal .mc-gallery-refined [data-gallery-caption]{min-width:0;overflow-wrap:anywhere}
body.mc26-portal .mc-gallery-refined button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;min-width:48px;width:48px;height:48px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#ffffff0d;color:#fff;font-family:Arial,sans-serif;font-size:34px;line-height:1;cursor:pointer}
body.mc26-portal .mc-gallery-refined [data-gallery-close]{flex-basis:44px;min-width:44px;width:44px;height:44px;font-size:29px}
body.mc26-portal .mc-gallery-refined button:hover{background:#ffffff25}
body.mc26-portal .mc-gallery-refined button:disabled{opacity:.3;cursor:default}
body.mc26-portal .mc-gallery-refined :is(button,a):focus-visible{outline:3px solid #ed97b9;outline-offset:3px}
body.mc26-portal .mc-gallery-refined .mc-gallery-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;padding:16px 24px;overflow:hidden;touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
body.mc26-portal .mc-gallery-refined .mc-gallery-stage>img{display:block;min-width:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
body.mc26-portal .mc-gallery-refined .mc-gallery-stage>img[hidden],body.mc26-portal .mc-gallery-refined [data-gallery-error][hidden]{display:none}
body.mc26-portal .mc-gallery-refined [data-gallery-error]{padding:24px;margin:0;text-align:center;font-size:15px;line-height:1.6}
body.mc26-portal .mc-gallery-controls{display:flex;justify-content:center;align-items:center;gap:24px;padding:8px 20px}
body.mc26-portal .mc-gallery-controls [data-gallery-counter]{min-width:96px;text-align:center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
body.mc26-portal .mc-gallery-hint{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 20px;padding:4px 22px 10px;margin:0!important;color:#c8c2ca;font-size:13px;line-height:1.5}
body.mc26-portal .mc-gallery-hint>a{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-decoration:underline;text-underline-offset:4px;font-size:13px}
@media(max-width:700px){
 body.mc26-portal .mc-gallery-refined{width:100%;max-width:none;height:100%;height:100dvh;max-height:100%;margin:0;inset:0;border:0;border-radius:0}
 body.mc26-portal .mc-gallery-refined .mc-gallery-dialog-top{padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;font-size:13px}
 body.mc26-portal .mc-gallery-refined .mc-gallery-stage{padding:12px 0}
 body.mc26-portal .mc-gallery-hint{justify-content:center;text-align:center;gap:0;padding:0 16px calc(10px + env(safe-area-inset-bottom,0px))}
 body.mc26-portal .mc-gallery-hint>span{flex-basis:100%;font-size:12px}
}
@media(max-height:480px){
 body.mc26-portal .mc-gallery-refined .mc-gallery-dialog-top{padding-block:4px}
 body.mc26-portal .mc-gallery-refined .mc-gallery-stage{padding-block:4px}
 body.mc26-portal .mc-gallery-controls{padding-block:2px}
 body.mc26-portal .mc-gallery-hint{display:none}
}
