.medessa-gallery, .medessa-gallery * { box-sizing:border-box; }
.medessa-gallery {
  --mog-teal:#1da6b0;--mog-green:#8cc63f;--mog-ink:#263c40;
  width:100%;max-width:1180px;margin:34px auto 42px;
  padding:0 16px;color:var(--mog-ink);font-family:inherit;
}
.medessa-gallery .mog-heading {margin:0 0 19px;text-align:center;font-size:clamp(24px,3vw,34px);line-height:1.2;font-weight:800;color:#253b3f;}
.medessa-gallery .mog-subtitle {margin:0 auto 22px;text-align:center;max-width:650px;color:#53686a;font-size:15px;line-height:1.55;}
.medessa-gallery .mog-shell {position:relative;min-width:0;border-radius:15px;overflow:hidden;background:#f2f6f5;box-shadow:0 7px 24px rgba(30,62,62,.10);border:1px solid #e5eeeb;}
.medessa-gallery .mog-track {display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;}
.medessa-gallery .mog-track::-webkit-scrollbar {display:none;}
.medessa-gallery .mog-slide {flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;margin:0;}
.medessa-gallery .mog-imagebox {width:100%;aspect-ratio:16/9;display:flex;justify-content:center;align-items:center;background:#edf3f1;}
.medessa-gallery .mog-image {display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.medessa-gallery .mog-caption {display:flex;align-items:center;justify-content:center;min-height:61px;margin:0;padding:11px 80px;text-align:center;background:#fff;color:#31474a;font-size:clamp(13px,1.35vw,16px);font-weight:600;line-height:1.4;}
.medessa-gallery .mog-arrow {position:absolute;top:calc((100% - 61px)/2);transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:43px;height:43px;border:0;border-radius:50%;padding:0;z-index:2;background:rgba(29,166,176,.95);color:white;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.18);transition:background .15s ease;}
.medessa-gallery .mog-arrow:hover,.medessa-gallery .mog-arrow:focus-visible {background:#147d87;}
.medessa-gallery .mog-arrow:focus-visible,.medessa-gallery .mog-dot:focus-visible {outline:3px solid #1da6b0;outline-offset:3px;}
.medessa-gallery .mog-arrow svg {width:23px;height:23px;display:block;}
.medessa-gallery .mog-prev {left:16px;}
.medessa-gallery .mog-next {right:16px;}
.medessa-gallery .mog-controls {display:flex;align-items:center;justify-content:center;gap:10px;padding-top:16px;}
.medessa-gallery .mog-dot {width:12px;height:12px;border-radius:50%;padding:0;border:2px solid #1da6b0;background:#fff;cursor:pointer;transition:background .15s ease,transform .15s ease;}
.medessa-gallery .mog-dot[aria-current="true"] {background:#1da6b0;transform:scale(1.18);}
.medessa-gallery .mog-count {min-width:56px;text-align:center;color:#607477;font-size:13px;font-variant-numeric:tabular-nums;}
@media (max-width:767px) {
  .medessa-gallery {padding:0 10px;margin:5px auto 20px;}
  .medessa-gallery .mog-heading {margin-bottom:12px;}
  .medessa-gallery .mog-subtitle {font-size:13px;margin-bottom:12px;}
  .medessa-gallery .mog-shell {border-radius:10px;}
  .medessa-gallery .mog-imagebox {aspect-ratio:4/3;}
  .medessa-gallery .mog-caption {min-height:58px;padding:10px 54px;font-size:13px;}
  .medessa-gallery .mog-arrow {width:34px;height:34px;top:calc((100% - 58px)/2);}
  .medessa-gallery .mog-arrow svg {width:19px;height:19px;}
  .medessa-gallery .mog-prev {left:7px;}
  .medessa-gallery .mog-next {right:7px;}
}
@media (prefers-reduced-motion:reduce) {
  .medessa-gallery .mog-track {scroll-behavior:auto;}
  .medessa-gallery .mog-dot {transition:none;}
}

/* The homepage uses the same constrained column and gutters as the doctors. */
@media (min-width: 600px) {
  .medessa-front-page .medessa-gallery { width: 100%; max-width: var(--wp--style--global--content-size, 760px); padding-inline: 10px; }
}
@media (min-width: 768px) {
  .medessa-front-page .medessa-gallery { padding-inline: 16px; }
}

.medessa-gallery .mog-heading strong { color: var(--md-teal); font-weight: 850; }
