.be-lux-gallery,
    .be-lux-gallery * {
      box-sizing: border-box;
    }

    .be-lux-gallery {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    .be-lux-gallery__head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--lux-line);
    }

    .be-lux-gallery__kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--lux-accent);
      font-size: 10.5px;
      font-weight: 950;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .be-lux-gallery__kicker::before {
      content: "";
      width: 38px;
      height: 1px;
      background: var(--lux-accent);
    }

    .be-lux-gallery__title {
      margin: 8px 0 0;
      color: var(--lux-text);
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(32px, 3.2vw, 48px);
      line-height: 1.02;
      letter-spacing: -.055em;
      font-weight: 500;
    }

    .be-lux-gallery__sub {
      max-width: 720px;
      margin: 9px 0 0;
      color: var(--lux-muted);
      font-size: 13.5px;
      line-height: 1.6;
      font-weight: 500;
    }

    .be-lux-gallery__action {
      flex: 0 0 auto;
    }

    .be-lux-gallery__btn {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 16px;
      border: 1px solid var(--lux-line);
      background: var(--lux-surface);
      color: var(--lux-text);
      text-decoration: none;
      font-size: 12px;
      font-weight: 900;
    }

    .be-lux-gallery__btn:hover {
      background: var(--lux-primary);
      color: #fff;
      text-decoration: none;
    }

    .be-lux-gallery__showcase {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
      gap: 16px;
      min-height: clamp(440px, 48vw, 640px);
    }

    .be-lux-gallery__main-wrap,
    .be-lux-gallery__side {
      min-width: 0;
    }

    .be-lux-gallery__main-wrap {
      position: relative;
      overflow: hidden;
      background: #e5e7eb;
    }

    .be-lux-gallery__main {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: clamp(440px, 48vw, 640px);
      display: block;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: zoom-in;
      overflow: hidden;
    }

    .be-lux-gallery__main img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center center;
    }

    .be-lux-gallery__side {
      display: grid;
      grid-template-rows: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .be-lux-gallery__side-btn {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 0;
      display: block;
      padding: 0;
      border: 0;
      background: #e5e7eb;
      cursor: zoom-in;
      overflow: hidden;
    }

    .be-lux-gallery__side-btn img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .be-lux-gallery__shade {
      position: absolute;
      inset: auto 0 0;
      height: 46%;
      z-index: 2;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(3,7,18,0) 0%, rgba(3,7,18,.66) 100%);
    }

    .be-lux-gallery__caption {
      position: absolute;
      left: 22px;
      right: 22px;
      bottom: 22px;
      z-index: 3;
      color: #fff;
      text-align: left;
      pointer-events: none;
    }

    .be-lux-gallery__caption-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(22px, 2.4vw, 34px);
      line-height: 1.05;
      font-weight: 500;
      letter-spacing: -.04em;
      text-shadow: 0 10px 28px rgba(3,7,18,.36);
    }

    .be-lux-gallery__caption-text {
      max-width: 620px;
      margin-top: 7px;
      font-size: 13px;
      line-height: 1.5;
      font-weight: 600;
      color: rgba(255,255,255,.9);
      text-shadow: 0 10px 28px rgba(3,7,18,.36);
    }

    .be-lux-gallery__badge {
      position: absolute;
      top: 16px;
      left: 16px;
      z-index: 3;
      min-height: 28px;
      display: inline-flex;
      align-items: center;
      padding: 0 11px;
      background: rgba(255,255,255,.86);
      color: rgba(17,24,39,.88);
      font-size: 10.5px;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
      backdrop-filter: blur(12px);
    }

    .be-lux-gallery__side-count {
      position: absolute;
      inset: 0;
      z-index: 4;
      display: grid;
      place-items: center;
      background: rgba(3,7,18,.46);
      color: #fff;
      font-size: 18px;
      font-weight: 900;
      letter-spacing: .02em;
      pointer-events: none;
    }

    .be-lux-gallery-slider-btn {
      position: absolute;
      top: 50%;
      z-index: 5;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255,255,255,.46);
      background: rgba(3,7,18,.46);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 29px;
      line-height: 1;
      cursor: pointer;
      transform: translateY(-50%);
      backdrop-filter: blur(10px);
    }

    .be-lux-gallery-slider-btn:hover {
      background: rgba(3,7,18,.74);
    }

    .be-lux-gallery-slider-btn--prev {
      left: 16px;
    }

    .be-lux-gallery-slider-btn--next {
      right: 16px;
    }

    .be-lux-gallery__thumbs {
      max-width: 100%;
      margin-top: 14px;
      display: flex;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 2px 2px 8px;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }

    .be-lux-gallery__thumbs::-webkit-scrollbar {
      height: 7px;
    }

    .be-lux-gallery__thumbs::-webkit-scrollbar-track {
      background: color-mix(in srgb, var(--lux-text) 5%, transparent);
    }

    .be-lux-gallery__thumbs::-webkit-scrollbar-thumb {
      background: color-mix(in srgb, var(--lux-primary) 24%, transparent);
    }

    .be-lux-gallery-thumb {
      position: relative;
      flex: 0 0 auto;
      width: 112px;
      height: 78px;
      border: 2px solid transparent;
      padding: 0;
      overflow: hidden;
      cursor: pointer;
      background: #f8fafc;
      opacity: .72;
      transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
    }

    .be-lux-gallery-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .be-lux-gallery-thumb:hover,
    .be-lux-gallery-thumb.is-active {
      opacity: 1;
      border-color: var(--lux-accent);
      transform: translateY(-1px);
    }

    .be-lux-gallery__footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--lux-line);
    }

    .be-lux-gallery__footer-note {
      color: var(--lux-text);
      font-size: 13px;
      font-weight: 850;
    }

    .be-lux-gallery__footer-meta {
      color: var(--lux-muted);
      font-size: 13px;
      font-weight: 650;
    }

    @media (max-width: 900px) {
      .be-lux-gallery__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
      }

      .be-lux-gallery__action,
      .be-lux-gallery__btn {
        width: 100%;
      }

      .be-lux-gallery__showcase {
        grid-template-columns: 1fr;
        min-height: 0;
      }

      .be-lux-gallery__main,
      .be-lux-gallery__main-wrap {
        min-height: clamp(280px, 66vw, 430px);
      }

      .be-lux-gallery__side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
      }

      .be-lux-gallery__side-btn {
        height: clamp(130px, 30vw, 210px);
      }

      .be-lux-gallery__caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
      }

      .be-lux-gallery__caption-title {
        font-size: 22px;
      }
    }

    @media (max-width: 520px) {
      .be-lux-gallery__side {
        display: none;
      }

      .be-lux-gallery-thumb {
        width: 86px;
        height: 64px;
      }

      .be-lux-gallery-slider-btn {
        width: 38px;
        height: 38px;
      }

      .be-lux-gallery-slider-btn--prev {
        left: 10px;
      }

      .be-lux-gallery-slider-btn--next {
        right: 10px;
      }
    }
