/* Specificity note: base rules are kept below the Elementor control selectors
   (which are prefixed with the widget wrapper) but above common theme resets. */
.aab-gallery{width:100%;max-width:640px;margin-left:auto;margin-right:auto}
.aab-gallery *{box-sizing:border-box}

/* Large image */
.aab-gallery .aab-gallery__stage{position:relative;aspect-ratio:4/3;background:#F2F3F5;overflow:hidden;
  box-shadow:0 0 0 6px #fff,0 4px 18px rgba(0,0,0,.18)}
.aab-gallery .aab-gallery__main{position:absolute;top:0;left:0;width:100%;height:100%;display:block;
  max-width:none;margin:0;border-radius:0;box-shadow:none;opacity:1;transition:opacity .25s ease}
.aab-gallery__main{object-fit:cover}

/* Caption: inherits the theme's font, size and colour by default */
.aab-gallery .aab-gallery__caption{margin:22px 0 14px;min-height:2.6em;text-align:left;font:inherit;
  line-height:1.45;color:inherit;opacity:1;transition:opacity .25s ease;text-wrap:pretty}

.aab-gallery.is-switching .aab-gallery__main,
.aab-gallery.is-switching .aab-gallery__caption{opacity:0}

/* Thumbnails */
.aab-gallery .aab-gallery__thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}
.aab-gallery .aab-gallery__thumbs .aab-gallery__thumb{display:block;width:auto;padding:0;margin:0;
  border:2px solid transparent;border-radius:3px;background:none;color:inherit;cursor:pointer;
  overflow:hidden;line-height:0;font-size:0;box-shadow:none;text-transform:none;opacity:.7;
  transition:border-color .2s ease,opacity .2s ease}
.aab-gallery .aab-gallery__thumbs .aab-gallery__thumb:hover,
.aab-gallery .aab-gallery__thumbs .aab-gallery__thumb[aria-pressed="true"]{opacity:1}
.aab-gallery .aab-gallery__thumbs .aab-gallery__thumb:focus-visible{outline:3px solid #0075B5;outline-offset:2px}
.aab-gallery .aab-gallery__thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  max-width:100%;margin:0;border-radius:0;box-shadow:none}

.aab-gallery__empty{padding:24px;text-align:center;border:1px dashed #b5bcc4;color:#6b7480}

@media (prefers-reduced-motion:reduce){
  .aab-gallery .aab-gallery__main,.aab-gallery .aab-gallery__caption,
  .aab-gallery .aab-gallery__thumbs .aab-gallery__thumb{transition:none}
}
