.image-lightbox {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(20, 14, 28, 0.96);
        color: #fff;
        overflow: hidden;
      }
      .image-lightbox::backdrop {
        background: rgba(20, 14, 28, 0.82);
        backdrop-filter: blur(5px);
      }
      .image-lightbox[open] {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
      }
      .lightbox-toolbar {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 62px;
        padding: 10px max(14px, env(safe-area-inset-right)) 10px
          max(14px, env(safe-area-inset-left));
        background: rgba(20, 14, 28, 0.88);
      }
      .lightbox-title {
        margin: 0;
        overflow: hidden;
        color: #f1ebf7;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .lightbox-actions {
        display: flex;
        flex: none;
        gap: 8px;
      }
      .lightbox-button {
        display: grid;
        width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font:
          800 20px/1 Arial,
          sans-serif;
        cursor: pointer;
      }
      .lightbox-button:hover {
        background: rgba(255, 255, 255, 0.2);
      }
      .lightbox-button:focus-visible {
        outline: 3px solid #ffc000;
        outline-offset: 2px;
      }
      .lightbox-stage {
        position: relative;
        display: grid;
        min-height: 0;
        padding: 12px;
        place-items: center;
        overflow: hidden;
        cursor: zoom-in;
        touch-action: none;
        user-select: none;
      }
      .lightbox-stage.is-zoomed {
        cursor: grab;
      }
      .lightbox-stage.is-dragging {
        cursor: grabbing;
      }
      .lightbox-image {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transform-origin: center;
        will-change: transform;
        -webkit-user-drag: none;
      }
      .lightbox-footer {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        min-height: 52px;
        padding: 10px max(16px, env(safe-area-inset-right))
          max(10px, env(safe-area-inset-bottom))
          max(16px, env(safe-area-inset-left));
        background: rgba(20, 14, 28, 0.88);
        color: #d4c9df;
        font-size: 13px;
      }
      .lightbox-scale {
        flex: none;
        color: #ffc000;
        font-weight: 800;
      }
      @media (max-width: 600px) {
        .lightbox-toolbar {
          gap: 8px;
        }
        .lightbox-title {
          position: absolute;
          width: 1px;
          height: 1px;
          overflow: hidden;
          clip: rect(0 0 0 0);
        }
        .lightbox-actions {
          width: 100%;
          justify-content: center;
        }
        .lightbox-button:last-child {
          margin-left: auto;
        }
        .lightbox-stage {
          padding: 6px;
        }
        .lightbox-footer span:first-child {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
      @media (prefers-reduced-motion: no-preference) {
        .image-lightbox[open] .lightbox-image {
          animation: lightbox-in 160ms ease-out;
        }
        @keyframes lightbox-in {
          from {
            opacity: 0;
            transform: scale(0.97);
          }
        }
      }
      
.lightbox-button{width:44px;height:44px}.image-link{display:block;cursor:zoom-in}.image-link:focus-visible{outline:3px solid #ffc000;outline-offset:4px}html:has(.image-lightbox[open]){overflow:hidden}
