/* Small gallery – exact structure, fixed arrows/scrollbar + same shine as large */
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

.imrv-gallery-small-root .ok-content--gallery{
  position:relative;
}

.imrv-gallery-small-root .ok-gallery-row{
  margin:0 0 24px;
}

.imrv-gallery-small-root .ok-gallery-row:last-child{
  margin-bottom:0;
}

.imrv-gallery-small-root .ok-gallery-wrapper{
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 46px;
  align-items:center;
  gap:12px;
}

.imrv-gallery-small-root .ok-gallery-track{
  display:flex;
  align-items:stretch;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  min-width:0;
  width:100%;
  padding:10px 2px 12px;
}

.imrv-gallery-small-root .ok-gallery-track::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

.imrv-gallery-small-root .ok-gallery-track img{
  flex:none;
  width:100%;
  max-width:none;
  height:auto;
  aspect-ratio:1 / .72;
  object-fit:cover;
  display:block;
  border-radius:16px;
  position:relative;
  z-index:1;
  cursor:pointer;
  background:#000;
  user-select:none;
  -webkit-user-drag:none;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 14px 34px rgba(0,0,0,.42),
    0 1px 0 rgba(255,255,255,.06) inset;
  filter:saturate(.92) contrast(1.03) brightness(.92);
  transition:
    filter .45s ease,
    box-shadow .45s ease,
    border-color .35s ease,
    transform .55s cubic-bezier(.22,.61,.36,1);
  position:relative;
  z-index:1;
  transform:scale(1);
}

.imrv-gallery-small-root .ok-gallery-track img::after{
  content:none;
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card{
  position:relative;
  flex:0 0 320px;
  width:320px;
  border-radius:16px;
  overflow:hidden;
  isolation:isolate;
  transform:
    perspective(1200px)
    rotateY(0deg)
    rotateX(0deg)
    translateY(0)
    scale(1);
  transition:transform .55s cubic-bezier(.22,.61,.36,1);
  z-index:1;
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card .imrv-small-shine{
  position:absolute;
  inset:0;
  border-radius:16px;
  z-index:2;
  background:linear-gradient(
    115deg,
    transparent 24%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.14) 50%,
    rgba(255,255,255,0) 60%,
    transparent 76%
  );
  transform:translateX(-130%) skewX(-18deg);
  opacity:0;
  transition:
    transform .55s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease;
  pointer-events:none;
  mix-blend-mode:screen;
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card:hover{
  transform:
    perspective(1200px)
    rotateY(10deg)
    rotateX(2deg)
    translateY(-4px)
    scale(1.04);
  z-index:3;
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card:hover img{
  filter:saturate(1.04) contrast(1.06) brightness(.99);
  border-color:rgba(199,162,74,.38);
  box-shadow:
    0 28px 70px rgba(0,0,0,.62),
    0 0 0 1px rgba(199,162,74,.14) inset,
    0 0 28px rgba(199,162,74,.10);
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card:hover .imrv-small-shine{
  transform:translateX(130%) skewX(-18deg);
  opacity:1;
}

.imrv-gallery-small-root .ok-gallery-track > .imrv-small-card:active{
  transform:
    perspective(1200px)
    rotateY(5deg)
    rotateX(1deg)
    translateY(-1px)
    scale(1.02);
}

.imrv-gallery-small-root .ok-gallery-arrow{
  appearance:none;
  border:none;
  cursor:pointer;
  width:46px;
  min-width:46px;
  height:46px;
  min-height:46px;
  border-radius:50%;
  border:1px solid rgba(199,162,74,.48);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.12), transparent 52%),
    linear-gradient(180deg, rgba(0,0,0,.64), rgba(0,0,0,.84));
  color:rgba(255,255,255,.96);
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 12px 34px rgba(0,0,0,.50),
    0 0 0 1px rgba(255,255,255,.04) inset;
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  transform:none;
  position:relative;
  z-index:5;
  align-self:center;
  justify-self:center;
  margin:0;
  bottom:auto;
  left:auto;
  right:auto;
  top:auto;
}

.imrv-gallery-small-root .ok-gallery-arrow:hover{
  transform:scale(1.08);
  border-color:rgba(199,162,74,.82);
  box-shadow:
    0 16px 42px rgba(0,0,0,.62),
    0 0 24px rgba(199,162,74,.18);
}

.ok-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:999999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.04), transparent 35%),
    rgba(0,0,0,.90);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease, visibility .28s ease;
}

.ok-gallery-lightbox.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.ok-gallery-lightbox .ok-gallery-lightbox-img{
  max-width:min(94vw, 1400px);
  max-height:88vh;
  object-fit:contain;
  display:block;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:
    0 30px 120px rgba(0,0,0,.78),
    0 0 40px rgba(199,162,74,.08);
  background:#09090c;
}

.ok-gallery-lightbox .ok-gallery-lightbox-close{
  top:18px;
  right:18px;
  z-index:6;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(199,162,74,.46);
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  cursor:pointer;
}


/* Large gallery – cleaned/fixed */
.imrv-gallery-large-root .ok-content--gallery-full{
  max-width:1680px;
  margin:0 auto;
}
.imrv-gallery-large-root .ok-gallery-intro{
  max-width:980px;
  margin:0 auto 26px;
  text-align:center;
  color:rgba(255,255,255,.74);
  font:600 15px/1.7 "Inter",sans-serif;
}
.imrv-gallery-large-root .ok-gallery-toolbar-full{
  width:min(100%, 980px);
  margin:0 auto 34px;
  padding:16px 18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    rgba(8,8,12,.52);
  box-shadow:
    0 12px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(10px);
}
.imrv-gallery-large-root .ok-gallery-toolbar-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.imrv-gallery-large-root .ok-gallery-filter-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  color:#fff;
  height:46px;
  padding:0 18px;
  border-radius:999px;
  font:800 12px/1 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:.22s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.imrv-gallery-large-root .ok-gallery-filter-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(224,184,79,.32);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}
.imrv-gallery-large-root .ok-gallery-filter-btn.is-active{
  color:#151008;
  border-color:rgba(224,184,79,.65);
  background:linear-gradient(180deg,#efc964,#c9962f);
  box-shadow:0 0 22px rgba(224,184,79,.18), inset 0 1px 0 rgba(255,255,255,.24);
}
.imrv-gallery-large-root .ok-gallery-results{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
  height:46px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.72);
  font:800 12px/1 "Inter",sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
.imrv-gallery-large-root .ok-gallery-sections{
  display:grid;
  gap:34px;
}
.imrv-gallery-large-root .ok-gallery-section-full{
  display:block;
}
.imrv-gallery-large-root .ok-gallery-section-head-full{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
  padding:0 2px;
}
.imrv-gallery-large-root .ok-gallery-head-full{
  margin:0;
  color:#fff;
  font:900 clamp(28px, 3vw, 54px)/1 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.imrv-gallery-large-root .ok-gallery-count-full{
  color:rgba(255,255,255,.64);
  font:800 13px/1 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.imrv-gallery-large-root .ok-gallery-grid-full{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  perspective:1400px;
  transform-style:preserve-3d;
}
.imrv-gallery-large-root .ok-gallery-grid-full.is-scrollable{
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
  scrollbar-color:rgba(199,162,74,.55) rgba(255,255,255,.05);
  scrollbar-width:thin;
}
.imrv-gallery-large-root .ok-gallery-grid-full.is-scrollable::-webkit-scrollbar{ width:10px; }
.imrv-gallery-large-root .ok-gallery-grid-full.is-scrollable::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.imrv-gallery-large-root .ok-gallery-grid-full.is-scrollable::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(199,162,74,.55), rgba(255,255,255,.22));
  border-radius:999px;
  border:2px solid rgba(10,10,13,.85);
}
.imrv-gallery-large-root .ok-gallery-item{
  position:relative;
  cursor:pointer;
  overflow:visible;
  background:transparent;
  transform-style:preserve-3d;
}
.imrv-gallery-large-root .ok-gallery-thumb-wrap{
  position:relative;
  aspect-ratio:1 / .72;
  overflow:hidden;
  border-radius:16px;
  background:#000;
  transform-style:preserve-3d;
  transform:perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(0) scale(1);
  transition:transform .55s cubic-bezier(.22,.61,.36,1);
  z-index:1;
}
.imrv-gallery-large-root .ok-gallery-thumb-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:16px;
  user-select:none;
  -webkit-user-drag:none;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
  box-shadow:0 14px 34px rgba(0,0,0,.42), 0 1px 0 rgba(255,255,255,.06) inset;
  filter:saturate(.92) contrast(1.03) brightness(.92);
  transition:filter .45s ease, box-shadow .45s ease, border-color .35s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  position:relative;
  z-index:1;
  transform:scale(1);
  transform-origin:center center;
}
.imrv-gallery-large-root .ok-gallery-thumb-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:2;
  background:linear-gradient(115deg, transparent 24%, rgba(255,255,255,0) 40%, rgba(255,255,255,.14) 50%, rgba(255,255,255,0) 60%, transparent 76%);
  transform:translateX(-130%) skewX(-18deg);
  opacity:0;
  transition:transform .55s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
  pointer-events:none;
  mix-blend-mode:screen;
}
.imrv-gallery-large-root .ok-gallery-item:hover .ok-gallery-thumb-wrap{
  transform:perspective(1200px) rotateY(6deg) rotateX(1.4deg) translateY(-3px) scale(1.02);
  z-index:3;
}
.imrv-gallery-large-root .ok-gallery-item:hover .ok-gallery-thumb-wrap img{
  filter:saturate(1.02) contrast(1.05) brightness(.98);
  border-color:rgba(199,162,74,.34);
  box-shadow:0 24px 56px rgba(0,0,0,.56), 0 0 0 1px rgba(199,162,74,.12) inset, 0 0 22px rgba(199,162,74,.08);
  transform:scale(1.035);
}
.imrv-gallery-large-root .ok-gallery-item:hover .ok-gallery-thumb-wrap::after{
  transform:translateX(130%) skewX(-18deg);
  opacity:1;
}
.imrv-gallery-large-root .ok-gallery-item:active .ok-gallery-thumb-wrap{
  transform:perspective(1200px) rotateY(3deg) rotateX(.8deg) translateY(-1px) scale(1.01);
}
.imrv-gallery-large-root .ok-gallery-item-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:14px;
  background:linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.74) 100%);
  pointer-events:none;
  z-index:4;
  border-radius:16px;
}
.imrv-gallery-large-root .ok-gallery-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.imrv-gallery-large-root .ok-gallery-caption-wrap{ min-width:0; }
.imrv-gallery-large-root .ok-gallery-caption-title{
  margin:0 0 5px;
  color:#fff;
  font:800 18px/1.15 "Inter",sans-serif;
  text-shadow:0 3px 12px rgba(0,0,0,.34);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.imrv-gallery-large-root .ok-gallery-caption-sub{
  margin:0;
  color:rgba(255,255,255,.80);
  font:800 12px/1.2 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.imrv-gallery-large-root .ok-gallery-hidden{ display:none !important; }
.imrv-gallery-large-root .ok-gallery-empty-full{
  display:none;
  margin-top:8px;
  padding:24px;
  text-align:center;
  color:rgba(255,255,255,.72);
  border:1px dashed rgba(255,255,255,.12);
  border-radius:20px;
  background:rgba(255,255,255,.015);
  font:700 14px/1.6 "Inter",sans-serif;
}
.imrv-gallery-large-root + .ok-gallery-lightbox-full,
.ok-gallery-lightbox-full{
  position:fixed;
  inset:0;
  z-index:999999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:radial-gradient(circle at center, rgba(255,255,255,.04), transparent 35%), rgba(0,0,0,.90);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease, visibility .28s ease;
}
.imrv-gallery-large-root + .ok-gallery-lightbox-full.is-open,
.ok-gallery-lightbox-full.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.ok-gallery-lightbox-dialog-full{
  position:relative;
  width:min(96vw, 1580px);
  max-height:92vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:16px;
  align-items:stretch;
}
.ok-gallery-lightbox-stage-full{
  position:relative;
  min-width:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:#09090c;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 30px 120px rgba(0,0,0,.78), 0 0 40px rgba(199,162,74,.08);
}
.ok-gallery-lightbox-stage-full img{
  max-width:92vw;
  max-height:90vh;
  object-fit:contain;
  display:block;
  transform:scale(.96);
  transition:transform .28s ease;
}
.ok-gallery-lightbox-full.is-open .ok-gallery-lightbox-stage-full img{ transform:scale(1); }
.ok-gallery-lightbox-side-full{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)), rgba(11,11,15,.92);
  box-shadow:0 18px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:0;
}
.ok-gallery-lightbox-counter-full{
  color:rgba(255,255,255,.58);
  font:800 12px/1 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ok-gallery-lightbox-heading-full{
  margin:0;
  color:#fff;
  font:900 24px/1.1 "Inter",sans-serif;
}
.ok-gallery-lightbox-caption-full{
  margin:0;
  color:rgba(255,255,255,.76);
  font:600 14px/1.7 "Inter",sans-serif;
  white-space:pre-line;
}
.ok-gallery-lightbox-meta-full{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font:800 11px/1 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ok-gallery-lightbox-thumbs-full{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  align-items:flex-start;
  gap:10px;
  max-height:320px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  scrollbar-color:rgba(199,162,74,.55) rgba(255,255,255,.05);
  scrollbar-width:thin;
  box-sizing:border-box;
}
.ok-gallery-lightbox-thumbs-full::-webkit-scrollbar{ width:10px; }
.ok-gallery-lightbox-thumbs-full::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.ok-gallery-lightbox-thumbs-full::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(199,162,74,.55), rgba(255,255,255,.22));
  border-radius:999px;
  border:2px solid rgba(10,10,13,.85);
}
.ok-gallery-lightbox-thumb-full{
  border:none;
  padding:0;
  margin:0;
  cursor:pointer;
  border-radius:14px;
  overflow:hidden;
  background:#0a0a0d;
  border:1px solid rgba(255,255,255,.08);
  opacity:.82;
  transition:border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  flex:0 0 calc(50% - 5px);
  max-width:calc(50% - 5px);
  display:block;
  aspect-ratio:16 / 11;
  box-sizing:border-box;
}
.ok-gallery-lightbox-thumb-full img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ok-gallery-lightbox-thumb-full:hover,
.ok-gallery-lightbox-thumb-full.is-active{
  opacity:1;
  border-color:rgba(224,184,79,.34);
  box-shadow:0 12px 26px rgba(0,0,0,.34), 0 0 0 1px rgba(224,184,79,.12) inset, 0 0 18px rgba(224,184,79,.10);
}
.ok-gallery-lightbox-close-full,
.ok-gallery-lightbox-nav-full{
  appearance:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  position:fixed;
  z-index:1000002;
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease, opacity .22s ease;
}
.ok-gallery-lightbox-close-full{
  top:18px;
  right:18px;
  left:auto;
  bottom:auto;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(199,162,74,.46);
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}
.ok-gallery-lightbox-nav-full{
  top:50%;
  bottom:auto;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(199,162,74,.48);
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.12), transparent 52%), linear-gradient(180deg, rgba(0,0,0,.64), rgba(0,0,0,.84));
  color:rgba(255,255,255,.96);
  font-size:28px;
  line-height:1;
  box-shadow:0 12px 34px rgba(0,0,0,.50), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform:translateY(-50%);
}
.ok-gallery-lightbox-prev-full{ left:16px; right:auto; }
.ok-gallery-lightbox-next-full{ right:16px; left:auto; }
.ok-gallery-lightbox-close-full:hover{
  transform:scale(1.08);
  border-color:rgba(199,162,74,.82);
  box-shadow:0 16px 42px rgba(0,0,0,.62), 0 0 24px rgba(199,162,74,.18);
}
.ok-gallery-lightbox-nav-full:hover{
  transform:translateY(-50%) scale(1.08);
  border-color:rgba(199,162,74,.82);
  box-shadow:0 16px 42px rgba(0,0,0,.62), 0 0 24px rgba(199,162,74,.18);
}
.ok-gallery-lightbox-close-full:active{ transform:scale(.97); }
.ok-gallery-lightbox-nav-full:active{ transform:translateY(-50%) scale(.97); }
@media (max-width:1400px){
  .imrv-gallery-large-root .ok-gallery-grid-full{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1024px){
  .ok-gallery-lightbox-dialog-full{
    grid-template-columns:1fr;
    width:min(96vw, 1080px);
  }
  .ok-gallery-lightbox-thumb-full{
    flex-basis:calc(33.333% - 6.666px);
    max-width:calc(33.333% - 6.666px);
  }
  .ok-gallery-lightbox-thumbs-full{ max-height:none; }
}
@media (max-width:900px){
  .imrv-gallery-large-root .ok-gallery-thumb-wrap{ aspect-ratio:1 / .78; }
}
@media (max-width:780px){
  .imrv-gallery-large-root .ok-gallery-grid-full{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .imrv-gallery-large-root .ok-gallery-section-head-full{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .imrv-gallery-large-root .ok-gallery-toolbar-full{
    padding:14px;
    border-radius:18px;
  }
}
@media (max-width:560px){
  .imrv-gallery-large-root .ok-gallery-grid-full{ grid-template-columns:1fr; }
  .imrv-gallery-large-root .ok-gallery-thumb-wrap{ aspect-ratio:1 / .82; }
  .imrv-gallery-large-root .ok-gallery-caption-title{ font-size:16px; }
  .ok-gallery-lightbox-full{ padding:10px; }
  .ok-gallery-lightbox-stage-full,
  .ok-gallery-lightbox-side-full{ border-radius:16px; }
  .ok-gallery-lightbox-close-full{
    top:10px;
    right:10px;
    width:42px;
    height:42px;
    font-size:17px;
  }
  .ok-gallery-lightbox-nav-full{
    width:42px;
    height:42px;
    font-size:20px;
  }
  .ok-gallery-lightbox-prev-full{ left:10px; }
  .ok-gallery-lightbox-next-full{ right:10px; }
  .ok-gallery-lightbox-thumb-full{
    flex-basis:calc(50% - 5px);
    max-width:calc(50% - 5px);
  }
}

/* Small gallery responsive fix */
@media (max-width:900px){
  .imrv-gallery-small-root .ok-gallery-track > .imrv-small-card{
    flex-basis:280px;
    width:280px;
  }
}

@media (max-width:560px){
  .imrv-gallery-small-root .ok-gallery-wrapper{
    grid-template-columns:42px minmax(0,1fr) 42px;
    gap:8px;
  }

  .imrv-gallery-small-root .ok-gallery-track{
    gap:12px;
  }

  .imrv-gallery-small-root .ok-gallery-track > .imrv-small-card{
    flex-basis:220px;
    width:220px;
  }

  .imrv-gallery-small-root .ok-gallery-arrow{
    width:42px;
    min-width:42px;
    height:42px;
    min-height:42px;
    font-size:22px;
  }
}
