/**
 * Artwork Lightbox - White Gallery Theme
 *
 * Custom PhotoSwipe styling for gallery-style white background
 * with clean, minimal artwork presentation
 *
 * @package ARTBID
 */

/* ============================================================
   WHITE BACKGROUND OVERRIDE
   Override PhotoSwipe's default dark theme
   ============================================================ */

.pswp {
    --pswp-bg: #ffffff;
    --pswp-icon-color: #333333;
    --pswp-icon-color-secondary: #666666;
    --pswp-placeholder-bg: #f5f5f5;
}

/* Root element with white background */
.pswp__bg {
    background: #ffffff !important;
    opacity: 1 !important;
}

/* ============================================================
   CLOSE BUTTON - Top Right
   ============================================================ */

.pswp__button--close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.pswp__button--close:hover {
    opacity: 1;
}

.pswp__button--close svg {
    width: 24px;
    height: 24px;
    stroke: #333333;
    stroke-width: 2;
}

/* ============================================================
   NAVIGATION ARROWS
   ============================================================ */

.pswp__button--arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pswp__button--arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.pswp__button--arrow--prev {
    left: 20px;
}

.pswp__button--arrow--next {
    right: 20px;
}

.pswp__button--arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333333;
    stroke-width: 2;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .pswp__button--arrow {
        display: none;
    }
}

/* ============================================================
   ZOOM BUTTON
   ============================================================ */

.pswp__button--zoom {
    position: absolute;
    top: 20px;
    right: 80px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.pswp__button--zoom:hover {
    opacity: 1;
}

.pswp__button--zoom svg {
    width: 24px;
    height: 24px;
    stroke: #333333;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .pswp__button--zoom {
        right: 70px;
    }
}

/* ============================================================
   IMAGE STYLING
   ============================================================ */

.pswp__img {
    object-fit: contain;
}

/* Image placeholder while loading */
.pswp__img--placeholder {
    background: #f5f5f5;
}

/* ============================================================
   ARTWORK INFORMATION PANEL
   Custom UI element for artwork details
   ============================================================ */

.pswp__artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    text-align: center;
}

/* Title */
.pswp__artwork-title {
    margin: 0 0 8px;
    font-family: var(--font-display, 'Georgia', serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Artist name */
.pswp__artwork-artist {
    margin: 0 0 12px;
    font-family: var(--font-body, 'Helvetica Neue', sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
}

/* Meta information (medium, year, dimensions) */
.pswp__artwork-meta {
    margin: 0 0 10px;
    font-family: var(--font-body, 'Helvetica Neue', sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #666666;
}

/* Price */
.pswp__artwork-price {
    margin: 0 0 8px;
    font-family: var(--font-body, 'Helvetica Neue', sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
}

/* Sold badge */
.pswp__artwork-sold {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #c41e3a;
    border-radius: 3px;
}

/* Auction name */
.pswp__artwork-auction {
    margin: 0;
    font-family: var(--font-body, 'Helvetica Neue', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #999999;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .pswp__artwork-info {
        padding: 30px 15px 20px;
    }

    .pswp__artwork-title {
        font-size: 22px;
    }

    .pswp__artwork-artist {
        font-size: 16px;
    }

    .pswp__artwork-meta {
        font-size: 14px;
    }

    .pswp__artwork-price {
        font-size: 15px;
    }

    .pswp__artwork-auction {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pswp__artwork-info {
        padding: 25px 12px 15px;
    }

    .pswp__artwork-title {
        font-size: 20px;
    }

    .pswp__artwork-artist {
        font-size: 15px;
    }

    .pswp__artwork-meta {
        font-size: 13px;
    }

    .pswp__artwork-price {
        font-size: 14px;
    }

    .pswp__artwork-auction {
        font-size: 12px;
    }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.pswp__preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
}

.pswp__preloader__icn {
    width: 50px;
    height: 50px;
    opacity: 0.5;
}

.pswp__preloader__icn circle {
    stroke: #333333;
    stroke-width: 2;
}

/* ============================================================
   COUNTER (X of Y)
   ============================================================ */

.pswp__counter {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 44px;
    font-family: var(--font-body, 'Helvetica Neue', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 44px;
    color: #666666;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .pswp__counter {
        display: none;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.pswp__button:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* ============================================================
   TRANSITIONS & ANIMATIONS
   ============================================================ */

.pswp__artwork-info {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth image transitions */
.pswp__img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   HIGH DPI / RETINA DISPLAYS
   ============================================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .pswp__artwork-info {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .pswp {
        display: none;
    }
}
