.mlb-gallery { --mlb-gap: 24px; --mlb-columns-desktop: 3; width: 100%; }
.mlb-gallery__navigation { margin: 0 0 24px; }
.mlb-gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.mlb-gallery__mobile-filter { display: none; }
.mlb-gallery__mobile-select { width: 100%; }
.mlb-gallery__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.mlb-gallery__filter { appearance: none; border: 0; background: transparent; color: #4b4b4b; padding: 12px 18px; font: inherit; font-size: 15px; letter-spacing: .025em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.mlb-gallery__filter:hover, .mlb-gallery__filter:focus-visible { color: #111; outline: 1px solid currentColor; outline-offset: -1px; }
.mlb-gallery__filter.is-active { background: #353535; color: #fff; outline: 0; }
.mlb-gallery__grid { display: grid; grid-template-columns: repeat(var(--mlb-columns-desktop), minmax(0, 1fr)); grid-auto-rows: 8px; gap: var(--mlb-gap); align-items: start; perspective: 1400px; perspective-origin: 50% 40%; transition: min-height .35s ease; }
.mlb-gallery__item { min-width: 0; opacity: 1; transform: translateZ(0) scale(1); transform-style: preserve-3d; filter: blur(0); transform-origin: 50% 50%; transition: opacity .30s ease var(--mlb-item-delay, 0ms), transform .42s cubic-bezier(.2,.75,.2,1) var(--mlb-item-delay, 0ms), filter .34s ease var(--mlb-item-delay, 0ms); will-change: opacity, transform, filter; }
.mlb-gallery__item[hidden] { display: none !important; }
.mlb-gallery__item.is-leaving { opacity: 0; transform: translateZ(-70px) scale(.94); filter: blur(5px); pointer-events: none; transition-duration: .22s, .28s, .24s; }
.mlb-gallery__item.is-entering { opacity: 0; transform: translateZ(55px) scale(1.045); filter: blur(6px); pointer-events: none; }
.mlb-gallery__grid.is-filtering { pointer-events: none; }
.mlb-gallery__card { position: relative; margin: 0; overflow: hidden; background: #f2f2f2; }
.mlb-gallery__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.mlb-gallery__open img { display: block; width: 100%; height: auto; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.mlb-gallery__open:hover img, .mlb-gallery__open:focus-visible img { transform: scale(1.018); filter: brightness(.88); }
.mlb-gallery__zoom { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.78); color: #fff; font-size: 34px; font-weight: 200; line-height: 1; opacity: 0; transform: translate(-50%, -42%); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.mlb-gallery__open:hover .mlb-gallery__zoom, .mlb-gallery__open:focus-visible .mlb-gallery__zoom { opacity: 1; transform: translate(-50%, -50%); }
.mlb-gallery__like { position: absolute; right: 13px; bottom: 13px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #242424; box-shadow: 0 3px 18px rgba(0,0,0,.14); cursor: pointer; font: inherit; backdrop-filter: blur(7px); }
.mlb-gallery__like span { font-size: 21px; line-height: 1; }
.mlb-gallery__like b { font-size: 12px; font-weight: 600; }
.mlb-gallery__like:hover, .mlb-gallery__like:focus-visible { background: #fff; transform: translateY(-1px); }
.mlb-gallery__like.is-liked { color: #a72c3b; }
.mlb-gallery__like.is-loading { opacity: .55; pointer-events: none; }
.mlb-gallery__like.has-error { outline: 2px solid #b32d2e; }
.mlb-gallery__lightbox { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; background: rgba(10,10,10,.95); color: #fff; }
.mlb-gallery__lightbox.is-open { display: flex; }
.mlb-gallery__lightbox-stage { position: relative; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 140px); max-height: calc(100vh - 60px); }
.mlb-gallery__lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 115px); width: auto; height: auto; object-fit: contain; }
.mlb-gallery__lightbox-meta { width: 100%; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 10px; }
.mlb-gallery__lightbox-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.mlb-gallery__lightbox-close, .mlb-gallery__lightbox-prev, .mlb-gallery__lightbox-next { position: fixed; z-index: 2; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .88; }
.mlb-gallery__lightbox-close { top: 12px; right: 22px; font-size: 46px; font-weight: 200; }
.mlb-gallery__lightbox-prev, .mlb-gallery__lightbox-next { top: 50%; width: 64px; height: 90px; transform: translateY(-50%); font-size: 38px; }
.mlb-gallery__lightbox-prev { left: 10px; }
.mlb-gallery__lightbox-next { right: 10px; }
.mlb-gallery__like--lightbox { position: static; flex: 0 0 auto; }
.mlb-gallery-lightbox-open { overflow: hidden; }
.mlb-gallery-empty { padding: 18px; background: #f5f5f5; }
@media (max-width: 1024px) { .mlb-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .mlb-gallery { --mlb-gap: 14px; }
  .mlb-gallery__navigation { margin-bottom: 22px; }
  .mlb-gallery__filters { display: none; }
  .mlb-gallery__mobile-filter { position: relative; display: block; width: 100%; }
  .mlb-gallery__mobile-filter::after { content: ""; position: absolute; top: 50%; right: 19px; width: 9px; height: 9px; border-right: 1.5px solid #2f2f2f; border-bottom: 1.5px solid #2f2f2f; transform: translateY(-68%) rotate(45deg); pointer-events: none; }
  .mlb-gallery__mobile-select { display: block; min-height: 52px; margin: 0; padding: 0 52px 0 17px; border: 1px solid #d7d4d0; border-radius: 0; background: #fff; color: #333; box-shadow: none; appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.25; letter-spacing: .035em; text-transform: uppercase; cursor: pointer; }
  .mlb-gallery__mobile-select:hover { border-color: #999; }
  .mlb-gallery__mobile-select:focus-visible { border-color: #333; outline: 1px solid #333; outline-offset: 2px; }
  .mlb-gallery__grid { grid-template-columns: 1fr; }
  .mlb-gallery__lightbox-stage { max-width: calc(100vw - 28px); }
  .mlb-gallery__lightbox-prev, .mlb-gallery__lightbox-next { width: 42px; background: rgba(0,0,0,.25); font-size: 28px; }
  .mlb-gallery__lightbox-prev { left: 0; }
  .mlb-gallery__lightbox-next { right: 0; }
  .mlb-gallery__lightbox-close { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mlb-gallery__open img, .mlb-gallery__zoom, .mlb-gallery__filter, .mlb-gallery__item, .mlb-gallery__grid { transition: none; }
}
