.q-gallery { --gallery-red: #a62939; width: min(1200px, calc(100% - 64px)); margin: 64px auto; color: #292b2f; letter-spacing: 0; }
.q-gallery *, .q-gallery-lightbox * { box-sizing: border-box; }
.q-gallery a { color: inherit; text-decoration: none; }
.q-gallery__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #767b80; font-size: 13px; padding-bottom: 24px; border-bottom: 1px solid #e6e7e9; }
.q-gallery__topline a, .q-gallery__more { display: inline-flex; align-items: center; gap: 9px; }
.q-gallery__topline svg, .q-gallery__more svg { width: 18px; height: 18px; flex: none; }
.q-gallery__heading { margin: 42px 0 36px; text-align: center; }
.q-gallery__heading h1, .q-gallery__heading h2 { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.4; }
.q-gallery__heading p { margin: 9px 0 0; color: #787d82; font-size: 12px; line-height: 1.6; }
.q-gallery--home { margin-top: 32px; padding-top: 36px; border-top: 1px solid #e7e8ea; }
.q-gallery--home .q-gallery__heading { margin-top: 0; }
.q-gallery__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 0 0 22px; margin-bottom: 30px; border-bottom: 1px solid #e7e8ea; }
.q-gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.q-gallery__filter { border: 0; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; padding: 10px 12px; color: #6b7279; font: inherit; font-size: 14px; cursor: pointer; }
.q-gallery__filter[aria-pressed="true"] { border-bottom-color: var(--gallery-red); color: var(--gallery-red); font-weight: 700; }
.q-gallery__search { display: flex; align-items: center; gap: 8px; border: 1px solid #dedfe2; border-radius: 5px; padding: 0 12px; height: 42px; margin-left: auto; width: 235px; }
.q-gallery__search svg { width: 17px; height: 17px; color: #858a90; flex: none; }
.q-gallery__search input { font: inherit; font-size: 14px; border: 0; width: 100%; min-width: 0; background: transparent; color: #30353a; outline: none; }
.q-gallery__search:focus-within { outline: 2px solid #a6293940; border-color: var(--gallery-red); }
.q-gallery__count { color: #81858a; font-size: 13px; white-space: nowrap; }
.q-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.q-gallery__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-gallery__item { min-width: 0; margin: 0; }
.q-gallery__open { display: block; padding: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #e7e8ea; border-radius: 6px; background: #f1f2f3; cursor: zoom-in; position: relative; }
.q-gallery__open img { display: block; width: 100%; height: 100% !important; object-fit: contain; transition: filter .2s ease; }
.q-gallery__open:hover img { filter: brightness(1.04); }
.q-gallery__expand { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 4px; color: white; background: #24282ccc; opacity: 0; transition: opacity .2s; }
.q-gallery__expand svg { width: 15px; height: 15px; }
.q-gallery__open:is(:hover, :focus-visible) .q-gallery__expand { opacity: 1; }
.q-gallery__caption { padding: 13px 0 0; }
.q-gallery__meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--gallery-red); margin-bottom: 5px; }
.q-gallery__caption h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.q-gallery__more { width: fit-content; margin: 28px auto 0; padding: 10px 0; border-bottom: 1px solid #d9b1b7; color: var(--gallery-red) !important; font-size: 14px; }
.q-gallery__bottom { text-align: center; }
.q-gallery__status { padding: 36px 0; color: #777d83; text-align: center; }
.q-gallery__retry { display: block; margin: 12px auto; padding: 9px 18px; border: 1px solid #d7d9db; border-radius: 4px; background: white; color: #a62939; cursor: pointer; }
.q-gallery__empty { grid-column: 1 / -1; padding: 60px 12px; text-align: center; color: #747b82; }
.q-gallery--news { margin-top: 32px; margin-bottom: 42px; }
.q-gallery--news .q-gallery__heading h2 { font-size: 26px; }
.q-gallery-footer { border-top: 1px solid #e6e7e9; background: #f5f6f7; display: flex; align-items: center; gap: 16px; padding: 32px max(24px, calc((100% - 1200px) / 2)); color: #666e76; font-size: 13px; line-height: 1.7; }
.q-gallery-footer img { width: 52px; height: auto; flex: none; }
.q-gallery-footer p { font-size: 12px; margin: 4px 0 0; }
.q-gallery-lightbox { color: #f2f3f4; border: 1px solid #ffffff18; border-radius: 8px; background: #171a1e; padding: 0; width: min(1320px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 24px 80px #0006; }
.q-gallery-lightbox::backdrop { background: #11151bdf; }
.q-gallery-lightbox[open] { animation: gallery-in .24s cubic-bezier(.2,.7,.2,1); }
.q-gallery-lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #ffffff18; }
.q-gallery-lightbox__counter { color: #b7bdc4; font-size: 13px; margin-right: auto; font-variant-numeric: tabular-nums; }
.q-gallery-lightbox__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 4px; background: transparent; color: #e8ebee; cursor: pointer; }
.q-gallery-lightbox__icon:hover { background: #ffffff15; }
.q-gallery-lightbox__icon svg { width: 21px; height: 21px; }
.q-gallery-lightbox__stage { position: relative; height: min(70dvh, 780px); min-height: 180px; padding: 12px 58px; display: grid; place-items: center; }
.q-gallery-lightbox__image { display: block; width: 100%; height: 100% !important; max-height: calc(70dvh - 24px); object-fit: contain; }
.q-gallery-lightbox__prev, .q-gallery-lightbox__next { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; background: #30363cd9; }
.q-gallery-lightbox__prev { left: 8px; }
.q-gallery-lightbox__next { right: 8px; }
.q-gallery-lightbox__error { position: absolute; color: #d7dbe0; padding: 20px; text-align: center; }
.q-gallery-lightbox__error[hidden] { display: none; }
.q-gallery :focus-visible, .q-gallery-lightbox :focus-visible { outline: 2px solid #c8858f; outline-offset: 4px; }
.q-gallery--reel { padding-top: 40px; margin-bottom: 64px; }
.q-gallery--reel .q-gallery__heading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; margin: 0 0 30px; text-align: left; padding-left: 18px; }
.q-gallery--reel .q-gallery__heading::before { content: ''; position: absolute; left: 0; top: 6px; width: 3px; height: 36px; background: var(--gallery-red); }
.q-gallery--reel .q-gallery__heading h2 { grid-column: 1; font-size: 30px; }
.q-gallery--reel .q-gallery__heading p { grid-column: 1; margin: 0; font-size: 11px; }
.q-gallery-reel__controls { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 8px; align-self: center; }
.q-gallery-reel__position { margin-right: 14px; white-space: nowrap; color: #8b8e93; font-size: 13px; font-variant-numeric: tabular-nums; }
.q-gallery-reel__position b { color: #a62939; font-size: 20px; font-weight: 500; }
.q-gallery-reel__control { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; flex: none; border: 1px solid #dedfe2; border-radius: 50%; background: #fff; color: #45474c; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.q-gallery-reel__control:hover { border-color: #a62939; color: #a62939; background: #fcf5f6; }
.q-gallery-reel__control svg { width: 18px; height: 18px; }
.q-gallery-reel { overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 0 20px; }
.q-gallery-reel__track { display: flex; gap: 28px; width: 100%; will-change: transform; }
.q-gallery-reel::-webkit-scrollbar { display: none; }
.q-gallery-reel .q-gallery__item { flex: 0 0 calc((100% - 84px) / 4); }
.q-gallery--news .q-gallery-reel .q-gallery__item { flex-basis: calc((100% - 56px) / 3); }
.q-gallery-reel__track > [hidden] { display: none; }
.q-gallery-reel .q-gallery__open { border: 0; border-radius: 4px; transition: box-shadow .35s, transform .35s; }
.q-gallery-reel .q-gallery__open:hover { transform: translateY(-4px); box-shadow: 0 12px 22px -14px #3f283350; }
.q-gallery-reel .q-gallery__open img { filter: none; }
.q-gallery-reel .q-gallery__caption { min-height: 80px; padding: 17px 2px 0; }
.q-gallery-reel .q-gallery__meta { font-size: 12px; margin-bottom: 6px; }
.q-gallery-reel .q-gallery__caption h3 { font-size: 16px; line-height: 1.5; }
.q-gallery-reel__progress { height: 2px; background: #eeeff1; margin-top: 10px; overflow: hidden; }
.q-gallery-reel__progress span { display: block; height: 100%; width: 100%; background: #b24050; transform: scaleX(.08); transform-origin: left; }
.q-gallery--reel.is-visible .q-gallery-reel { animation: gallery-reel-in .8s ease-out both; }
@keyframes gallery-reel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gallery-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .q-gallery-reel .q-gallery__item, .q-gallery--news .q-gallery-reel .q-gallery__item { flex-basis: calc((100% - 28px) / 2); }
  .q-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-gallery__search { margin-left: 0; }
}
@media (max-width: 600px) {
  .q-gallery { width: calc(100% - 32px); margin-top: 36px; margin-bottom: 42px; }
  .q-gallery__heading { margin: 28px 0; }
  .q-gallery__heading h1, .q-gallery__heading h2 { font-size: 26px; }
  .q-gallery__toolbar { gap: 14px 10px; }
  .q-gallery__filters { width: 100%; justify-content: space-between; gap: 0; }
  .q-gallery__filter { font-size: 13px; padding: 8px 5px; }
  .q-gallery__search { flex: 1; width: auto; }
  .q-gallery__grid { gap: 24px 12px; }
  .q-gallery__caption h3 { font-size: 14px; }
  .q-gallery__meta { font-size: 10px; gap: 5px; flex-wrap: wrap; }
  .q-gallery__caption { padding-top: 9px; }
  .q-gallery__expand { display: none; }
  .q-gallery-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 6px; }
  .q-gallery-lightbox__bar { padding: 7px 10px; gap: 5px; }
  .q-gallery-lightbox__stage { height: 53dvh; padding: 8px; }
  .q-gallery-lightbox__image { max-height: calc(53dvh - 16px); }
  .q-gallery-lightbox__prev, .q-gallery-lightbox__next { top: auto; bottom: 12px; background: #292f38e6; }
  .q-gallery--reel { padding-top: 28px; }
  .q-gallery--reel .q-gallery__heading { grid-template-columns: 1fr; gap: 3px; margin-bottom: 14px; padding-left: 14px; }
  .q-gallery--reel .q-gallery__heading h2 { font-size: 25px; }
  .q-gallery--reel .q-gallery__heading::before { top: 4px; height: 31px; }
  .q-gallery-reel__controls { grid-column: 1; grid-row: 3; justify-content: flex-end; gap: 8px; margin: 18px 0 0 -14px; }
  .q-gallery-reel__position { margin-right: auto; }
  .q-gallery-reel { padding-bottom: 8px; }
  .q-gallery-reel__track { gap: 14px; }
  .q-gallery-reel .q-gallery__item, .q-gallery--news .q-gallery-reel .q-gallery__item { flex-basis: calc(100% - 28px); }
  .q-gallery-reel .q-gallery__caption { min-height: 94px; padding-top: 13px; opacity: 0; transition: opacity .25s; }
  .q-gallery-reel .is-current .q-gallery__caption { opacity: 1; }
  .q-gallery-reel .q-gallery__caption h3 { font-size: 16px; }
  .q-gallery-reel .q-gallery__meta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-gallery-lightbox[open] { animation: none; }
  .q-gallery__open img, .q-gallery__expand { transition: none; }
  .q-gallery--reel.is-visible .q-gallery-reel { animation: none; }
  .q-gallery-reel__progress span, .q-gallery-reel .q-gallery__open, .q-gallery-reel .q-gallery__caption, .q-gallery-reel__control { transition: none; }
}
.carousel-wrap button.card-slide {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.carousel-wrap .dots[hidden] { display: none; }
