﻿.pfe-image-card--expandable {
    position: relative;
  }

  .pfe-image-card--expandable > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  .pfe-img-expand-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(6, 18, 32, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  }

  .pfe-img-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .pfe-img-expand svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pfe-img-expand-btn:hover,
  .pfe-img-expand-btn:focus-visible {
    background: rgba(13, 115, 212, 0.92);
    outline: 2px solid #0d73d4;
    outline-offset: 2px;
  }

  .pfe-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: rgba(6, 18, 32, 0.94);
  }

  .pfe-lightbox:not([open]) {
    display: none;
  }

  .pfe-lightbox::backdrop {
    background: rgba(6, 18, 32, 0.94);
  }

  .pfe-lightbox__viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
    padding: 56px 16px 48px;
    box-sizing: border-box;
    cursor: grab;
  }

  .pfe-lightbox__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .pfe-lightbox__stage {
    display: inline-block;
    margin: 0 auto;
    line-height: 0;
    vertical-align: top;
  }

  .pfe-lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
  }

  .pfe-lightbox__hint {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 100001;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(6, 18, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e8f2fc;
    font-size: 0.82rem;
    line-height: 1.3;
    pointer-events: none;
    white-space: nowrap;
  }

  .pfe-lightbox__toolbar {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pfe-lightbox__zoom {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(6, 18, 32, 0.88);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  .pfe-lightbox__zoom:hover,
  .pfe-lightbox__zoom:focus-visible {
    background: rgba(20, 114, 186, 0.95);
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .pfe-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100001;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(6, 18, 32, 0.88);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  .pfe-lightbox__close:hover,
  .pfe-lightbox__close:focus-visible {
    background: rgba(20, 114, 186, 0.95);
    outline: 2px solid #fff;
    outline-offset: 2px;
  }