/* Madison v35 — one photo = one card. No letterboxing or fake dark borders. */
#gallery {background:#f9f7f4}
#gallery .joe-gallery-board{max-width:1120px;margin:36px auto 0;padding:0;border:0;background:transparent;box-shadow:none}
#gallery #joe-gallery-v34{display:flex;gap:10px;align-items:flex-start;width:100%;min-width:0}
#gallery #joe-gallery-v34 .joe-v34-column{display:flex;flex:1 1 0;min-width:0;flex-direction:column;gap:10px}
#gallery #joe-gallery-v34 .joe-v34-tile{display:block;position:relative;flex:none;width:100%;height:auto;aspect-ratio:var(--photo-ratio);overflow:hidden;margin:0;padding:0;border:0;appearance:none;border-radius:0;cursor:zoom-in;background:transparent;box-sizing:border-box}
#gallery #joe-gallery-v34 .joe-v34-tile img{display:block;width:100%;max-width:100%;height:100%;object-fit:cover;object-position:center center;filter:none;opacity:1}
#gallery #joe-gallery-v34 .joe-v34-tile[data-fit="cover"] img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover!important;max-width:none;min-width:0;min-height:0}
/* An entire photograph cannot be kept inside a differently shaped frame without blanks.
   In full-image mode the card uses the original photo ratio instead. */
#gallery #joe-gallery-v34 .joe-v34-tile[data-fit="contain"]{aspect-ratio:auto!important}
#gallery #joe-gallery-v34 .joe-v34-tile[data-fit="contain"] img{position:relative!important;width:100%!important;height:auto!important;object-fit:initial!important;transform:none!important}
#gallery #joe-gallery-v34 .joe-v34-tile:focus-visible{outline:3px solid #ba8953;outline-offset:2px}
#gallery #joe-gallery-v34 .joe-v34-caption{position:absolute;bottom:0;left:0;right:0;padding:25px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font:400 12px/1.4 Lato,Arial,sans-serif;opacity:0;transition:opacity .2s;pointer-events:none}
#gallery #joe-gallery-v34 .joe-v34-tile:hover .joe-v34-caption,#gallery #joe-gallery-v34 .joe-v34-tile:focus-visible .joe-v34-caption{opacity:1}
@media(max-width:600px){#gallery #joe-gallery-v34,#gallery #joe-gallery-v34 .joe-v34-column{gap:7px}#gallery #joe-gallery-v34 .joe-v34-caption{opacity:1}}
