/* =========================================================
   VECTOR ARTWORK PAGE
========================================================= */

/* Page Layout */

.vector-page {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    color: #111111;
}


/* =========================================================
   INTRO
========================================================= */

.vector-intro {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 30px 30px;
    text-align: center;
}

.vector-intro h1 {
    max-width: 850px;
    margin: 0 auto;
    color: #111111;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.vector-intro h1 span {
    margin-left: 12px;
    color: #c1121f;
}

.vector-intro > p:not(.vector-formats) {
    max-width: 900px;
    margin: 22px auto 0;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.7;
}

.vector-formats {
    margin: 7px auto 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

.vector-formats strong {
    color: #111111;
    font-weight: 700;
}


/* =========================================================
   MAGNIFIER INSTRUCTION
========================================================= */

.magnifier-instruction {
    width: 100%;
    padding: 22px 20px 12px;
    background: #f5f5f5;
}

.magnifier-instruction-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: fit-content;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    background: #111111;
    box-shadow: 0 9px 28px rgba(0, 0, 0, .16);
}

.instruction-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #c1121f;
    color: #ffffff;
    box-shadow: 0 5px 17px rgba(193, 18, 31, .35);
}

.instruction-icon i {
    color: #ffffff;
    font-size: 17px;
}

.magnifier-instruction p {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   GALLERY
========================================================= */

.vector-showcase {
    width: 100%;
    padding: 38px 4% 90px;
    background: #f5f5f5;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 30px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.detail-artwork {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.detail-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 440px;
    padding: 5px 5px 78px;
    overflow: visible;
    border: none !important;
    border-radius: 0 !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
    touch-action: pan-y;
}

.detail-image > img {
    display: block;
    width: 100%;
    max-width: 470px;
    height: 390px;
    object-fit: contain;
    object-position: center;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transform: scale(1);
    transition:
        transform .35s ease,
        filter .35s ease;
}

@media (hover: hover) {
    .detail-artwork:hover .detail-image > img {
        transform: scale(1.02);
    }
}


/* =========================================================
   MAGNIFY BUTTON
========================================================= */

.magnify-trigger {
    position: absolute;
    right: 15px;
    bottom: 8px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-width: 62px;
    height: 62px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c1121f;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 7px 22px rgba(193, 18, 31, .30);
    touch-action: manipulation;
    animation: magnifyPulse 1.9s ease-in-out infinite;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.magnify-trigger i {
    margin: 0;
    color: #ffffff;
    font-size: 23px;
    line-height: 1;
}

@keyframes magnifyPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 7px 20px rgba(193, 18, 31, .25);
    }

    50% {
        transform: scale(1.10);
        box-shadow: 0 9px 30px rgba(193, 18, 31, .52);
    }
}

@media (hover: hover) {
    .magnify-trigger:hover {
        background: #a90f1a;
        animation-play-state: paused;
        transform: scale(1.08);
        box-shadow: 0 10px 30px rgba(193, 18, 31, .38);
    }
}

.magnify-trigger:focus-visible {
    outline: 3px solid rgba(193, 18, 31, .28);
    outline-offset: 4px;
}

.magnify-trigger.active {
    background: #111111;
    animation: none;
}


/* =========================================================
   MAGNIFIER LENS
========================================================= */

.magnifier-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 40;
    width: 190px;
    height: 190px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, .30),
        0 0 0 4px #c1121f;
    transform: translate(-50%, -50%) scale(.85);
    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.magnifier-lens.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}


/* Magnifier Handle */

.magnifier-handle {
    position: absolute;
    right: -60px;
    bottom: -42px;
    z-index: 60;
    display: block;
    width: 94px;
    height: 32px;
    border: 4px solid #ffffff;
    border-radius: 22px;
    background: #c1121f;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .25);
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}

.magnifier-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 48px;
    width: 21px;
    height: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .78);
    transform: translateY(-50%);
}

.detail-image.magnifier-active > img {
    transform: none;
    filter: none;
}


/* =========================================================
   MOBILE MAGNIFIER HANDLE
========================================================= */

@media (max-width: 768px) {
    .magnifier-lens {
        transition:
            opacity .18s ease,
            visibility .18s ease,
            transform .18s ease;
    }

    .magnifier-handle {
        pointer-events: auto;
        touch-action: none;
        transition:
            left .16s ease,
            right .16s ease,
            bottom .16s ease,
            transform .16s ease;
    }

    .magnifier-lens.handle-right .magnifier-handle {
        right: -60px;
        bottom: -42px;
        left: auto;
        transform: rotate(45deg);
        transform-origin: left center;
    }

    .magnifier-lens.handle-right .magnifier-handle::after {
        right: auto;
        left: 48px;
    }

    .magnifier-lens.handle-left .magnifier-handle {
        right: auto;
        bottom: -42px;
        left: -60px;
        transform: rotate(-45deg);
        transform-origin: right center;
    }

    .magnifier-lens.handle-left .magnifier-handle::after {
        right: 48px;
        left: auto;
    }
}


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

/* Tablet */

@media (max-width: 991px) {
    .vector-intro {
        padding: 45px 24px 25px;
    }

    .vector-intro h1 {
        font-size: clamp(43px, 7vw, 62px);
    }

    .magnifier-instruction {
        padding: 18px 18px 10px;
    }

    .vector-showcase {
        padding: 32px 4% 70px;
    }

    .detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 22px;
    }

    .detail-image {
        min-height: 400px;
        padding-bottom: 75px;
    }

    .detail-image > img {
        max-width: 440px;
        height: 350px;
    }

    .magnifier-lens {
        width: 175px;
        height: 175px;
    }
}


/* Mobile */

@media (max-width: 650px) {
    .vector-intro {
        padding: 35px 18px 20px;
    }

    .vector-intro h1 {
        max-width: 100%;
        font-size: 40px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .vector-intro h1 span {
        margin-left: 5px;
    }

    .vector-intro > p:not(.vector-formats) {
        margin-top: 16px;
        font-size: 13px;
        line-height: 1.65;
    }

    .vector-formats {
        margin-top: 7px;
        font-size: 13px;
    }

    .magnifier-instruction {
        padding: 15px 12px 8px;
    }

    .magnifier-instruction-inner {
        width: 100%;
        max-width: 100%;
        gap: 11px;
        padding: 13px 15px;
        border-radius: 18px;
        background: #111111;
        box-shadow: 0 7px 22px rgba(0, 0, 0, .15);
    }

    .instruction-icon {
        width: 38px;
        height: 38px;
        background: #c1121f;
    }

    .instruction-icon i {
        font-size: 15px;
    }

    .magnifier-instruction p {
        flex: 1;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.5;
        text-align: left;
    }

    .vector-showcase {
        padding: 25px 14px 55px;
        background: #f5f5f5;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-artwork,
    .detail-image,
    .detail-image > img {
        touch-action: pan-y !important;
    }

    .detail-artwork {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .detail-image {
        min-height: 410px;
        padding: 0 0 78px;
        overflow: visible;
        border: none !important;
        background: #f5f5f5 !important;
        box-shadow: none !important;
        touch-action: pan-y !important;
    }

    .detail-image > img {
        width: 100%;
        max-width: 100%;
        height: 350px;
        object-fit: contain;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        touch-action: pan-y !important;
    }

    .magnify-trigger {
        right: 10px;
        bottom: 7px;
        width: 64px;
        min-width: 64px;
        height: 64px;
        padding: 0;
        background: #c1121f;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .magnify-trigger i {
        font-size: 24px;
    }

    .magnifier-lens {
        width: 175px;
        height: 175px;
        overflow: visible;
        border-width: 4px;
        pointer-events: none !important;
        box-shadow:
            0 9px 30px rgba(0, 0, 0, .28),
            0 0 0 4px #c1121f;
    }

    .magnifier-lens.active {
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .magnifier-handle {
        right: -68px;
        bottom: -43px;
        z-index: 100;
        width: 100px;
        height: 34px;
        border-width: 4px;
        border-radius: 24px;
        pointer-events: auto !important;
        touch-action: none !important;
        cursor: grab;
    }

    .magnifier-handle:active {
        cursor: grabbing;
    }

    .magnifier-handle::after {
        left: 52px;
        width: 22px;
        height: 4px;
    }

    .detail-image.magnifier-active,
    .detail-image.magnifier-active > img {
        touch-action: pan-y !important;
    }
}


/* Very Small Mobile */

@media (max-width: 400px) {
    .vector-intro h1 {
        font-size: 35px;
    }

    .vector-showcase {
        padding-right: 11px;
        padding-left: 11px;
    }

    .detail-image {
        min-height: 375px;
        padding-bottom: 72px;
    }

    .detail-image > img {
        height: 320px;
    }

    .magnify-trigger {
        width: 60px;
        min-width: 60px;
        height: 60px;
    }

    .magnify-trigger i {
        font-size: 22px;
    }

    .magnifier-lens {
        width: 155px;
        height: 155px;
    }

    .magnifier-handle {
        right: -62px;
        bottom: -40px;
        width: 92px;
        height: 32px;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .magnify-trigger {
        animation: none;
    }

    .detail-image > img,
    .magnifier-lens,
    .magnify-trigger {
        transition: none;
    }
}


/* =========================================================
   FOOTER SAFETY
========================================================= */

.footer {
    position: relative;
}