.cpo-gallery-ready { position:relative; container-type:inline-size; }
.cpo-gallery-ready>.cpo-gallery-bar {
  position:absolute; inset:auto 0 0; z-index:3; display:flex; align-items:center;
  justify-content:space-between; gap:12px; padding:12px; box-sizing:border-box; background:rgba(0,0,0,.38);
}
.cpo-gallery-bar>a.cpo-template-download { position:static; flex:0 1 auto; min-width:0; max-width:none; }
.cpo-gallery-bar>.cpo-gallery-previews { display:flex; flex:none; gap:8px; margin-left:auto; }
.cpo-gallery-bar .cpo-gallery-preview {
  display:block; flex:none; width:48px; height:48px; box-sizing:border-box; margin:0; padding:0;
  border:2px solid white; border-radius:6px; overflow:hidden; background:#e4e9ed; cursor:pointer;
}
.cpo-gallery-bar .cpo-gallery-preview>img {
  display:block!important; position:static!important; width:100%!important; height:100%!important;
  max-width:none!important; aspect-ratio:1!important; object-fit:cover!important;
  mix-blend-mode:normal!important; transform:none!important;
}
.cpo-gallery-bar .cpo-gallery-preview[aria-pressed="true"]>img { filter:grayscale(1); }
.cpo-gallery-bar .cpo-gallery-preview:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.cpo-gallery-ready>.b2-gallery-thumbs { display:none; }
.image-overlay-wrapper.cpo-range-gallery-ready { height:auto; max-height:none; aspect-ratio:auto; }
.giftvouchers-page .image-overlay-wrapper.cpo-range-gallery-ready > .cpo-range-gallery-image {
  position:static;
  height:auto;
  object-fit:contain;
}
.cpo-range-gallery-ready > .cpo-gallery-bar {
  min-height:44px;
}
.cpo-range-gallery-ready.cpo-gallery-comparison > .cpo-gallery-bar {
  position:static;
  background:#536371;
}
.cpo-range-gallery-ready .cpo-range-gallery-image {
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  aspect-ratio:4 / 3;
  object-fit:contain;
  object-position:center;
}
.cpo-gallery-comparison > .booklet-badge { display:none; }
.cpo-range-gallery-ready .cpo-gallery-preview {
  width:64px;
  height:48px;
  border-color:transparent;
}
.cpo-range-gallery-ready .cpo-gallery-preview[aria-pressed="true"] { border-color:#fff; }
.cpo-range-gallery-ready .cpo-gallery-preview[aria-pressed="true"] > img { filter:none; }
.cpo-range-gallery-ready .cpo-gallery-preview > img { aspect-ratio:4 / 3 !important; }
.cpo-range-gallery-ready > .cpo-gallery-full-size {
  display:block;
  padding:8px;
  text-align:center;
  font:14px/1.4 Arial,sans-serif;
  text-decoration:underline;
}
.cpo-range-gallery-ready > .cpo-gallery-full-size[hidden] { display:none; }
@container(max-width:440px) {
  .cpo-gallery-ready>.cpo-gallery-bar { padding:8px; gap:8px; }
  .cpo-gallery-bar>.cpo-gallery-previews { gap:6px; }
  .cpo-gallery-bar .cpo-gallery-preview { width:36px; height:36px; }
  .cpo-range-gallery-ready .cpo-gallery-preview { width:48px; height:36px; }
  .cpo-gallery-bar>a.cpo-template-download { padding:5px 7px; gap:6px; font-size:10px; }
  .cpo-gallery-bar>a.cpo-template-download>img { width:22px!important; height:26px!important; }
}
@container(max-width:280px) {
  .cpo-gallery-ready>.cpo-gallery-bar { gap:4px; }
  .cpo-gallery-bar>.cpo-gallery-previews { gap:4px; }
  .cpo-gallery-bar .cpo-gallery-preview { width:30px; height:30px; }
  .cpo-range-gallery-ready .cpo-gallery-preview { width:40px; height:30px; }
  .cpo-gallery-bar>a.cpo-template-download>img { width:20px!important; height:24px!important; }
}
@container(max-width:235px) { .cpo-gallery-ready>.cpo-gallery-bar { flex-wrap:wrap; } }
