.project-gallery-slider-section {
    position: relative;
    max-width: 1895px;
    padding: 34px 20px 84px;
    margin: 0 auto;
}

.project-gallery-slider-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(77, 169, 255, 0.18) 18%, rgba(45, 189, 187, 0.18) 82%, transparent);
}

.project-gallery-slider-section::after {
    content: "";
    position: absolute;
    top: 58px;
    right: 4%;
    width: 94px;
    height: 64px;
    pointer-events: none;
    opacity: 0.16;
    background-image: radial-gradient(circle, rgba(77, 169, 255, 0.7) 1.1px, transparent 1.45px);
    background-size: 12px 12px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 86%);
            mask-image: linear-gradient(135deg, #000, transparent 86%);
}

.project-gallery-slider-swiper {
    position: relative;
    overflow: hidden;
}

.project-gallery-slider-slide {
    position: relative;
}

.project-gallery-slider-lightbox {
    display: block;
    text-decoration: none;
    outline: none;
}

.project-gallery-slider-block {
    --project-gallery-card-radius: 26px;
    --project-gallery-cutout-bg: #071b2b;

    position: relative;
    isolation: isolate;
    height: 560px;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: var(--project-gallery-card-radius);
    background: #071827;
    transform: translateZ(0);
}

.dark-mode .project-gallery-slider-block {
    --project-gallery-cutout-bg: var(--theme-dark-card);
}

.project-gallery-slider-block::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(3, 15, 27, 0) 48%,
        rgba(3, 15, 27, 0.08) 72%,
        rgba(3, 15, 27, 0.28) 100%
    );
    opacity: 0;
    transition: opacity 0.34s ease;
}

.project-gallery-slider-block.custom-cursor-trigger,
.project-gallery-slider-block.custom-cursor-trigger * {
    cursor: none;
}


.project-gallery-slider-block-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transform: scale(1);
    filter: blur(0);
    will-change: transform, filter;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.34s ease;
}


.project-gallery-slider-block:hover .project-gallery-slider-block-image {
    transform: scale(1.1);
    filter: blur(4px);
}

.project-gallery-slider-block:hover::after {
    opacity: 1;
}


.project-gallery-slider-architecture {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    max-width: min(78%, 440px);
    padding: 28px 30px 24px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    background:
        radial-gradient(circle at 8% 92%, rgba(45, 189, 187, 0.16), transparent 48%),
        radial-gradient(circle at 90% 4%, rgba(130, 88, 200, 0.16), transparent 44%),
        radial-gradient(circle at 58% 118%, rgba(77, 169, 255, 0.12), transparent 52%),
        var(--project-gallery-cutout-bg);
    box-shadow:
        0 -14px 34px rgba(0, 8, 20, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    border-radius: 0 24px 0 var(--project-gallery-card-radius);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-gallery-slider-block:hover .project-gallery-slider-architecture {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-gallery-slider-architecture::before,
.project-gallery-slider-architecture::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background: transparent;
    pointer-events: none;
}


.project-gallery-slider-architecture::before {
    left: 0;
    top: -22px;
    border-radius: 0 0 0 22px;
    box-shadow: -11px 11px 0 11px var(--project-gallery-cutout-bg);
}


.project-gallery-slider-architecture::after {
    right: -22px;
    bottom: 0;
    border-radius: 0 0 0 22px;
    box-shadow: -11px 11px 0 11px var(--project-gallery-cutout-bg);
}

.project-gallery-slider-architecture > span {
    position: relative;
    display: block;
    padding-left: 17px;
}

.project-gallery-slider-architecture > span::before {
    content: "";
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color-1), var(--theme-accent-teal));
    box-shadow: 0 0 9px rgba(45, 189, 187, 0.28);
}

.project-gallery-slider-architecture a,
.project-gallery-slider-architecture span > span {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: rgba(245, 250, 255, 0.96);
    font-family: var(--font-main);
    font-size: var(--fs-18);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.dark-mode .project-gallery-slider-architecture a,
.dark-mode .project-gallery-slider-architecture span > span {
    color: var(--color-white);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    padding: 14px;
    border: 1px solid rgba(151, 221, 255, 0.18);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(77, 169, 255, 0.22), transparent 40%),
        linear-gradient(145deg, #071a2d, #0a2441);
    color: #fff;
    text-align: center;
    font-size: var(--fs-14);
    line-height: 1.35;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0, 8, 20, 0.22);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.custom-cursor.dragging {
    transform: translate(-50%, -50%) scale(0.85);
}

@media (max-width: 1350px) {
    .project-gallery-slider-block {
        height: 520px;
    }
}

@media (max-width: 1200px) {
    .project-gallery-slider-section {
        padding-bottom: 68px;
    }

    .project-gallery-slider-block {
        height: 480px;
    }
}

@media (max-width: 992px) {
    .project-gallery-slider-section {
        padding-top: 28px;
    }

    .project-gallery-slider-block {
        height: 430px;
    }

    .project-gallery-slider-architecture {
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 24px 26px 20px 20px;
    }
}

@media (max-width: 768px) {
    .project-gallery-slider-section {
        padding: 24px 12px 54px;
    }

    .project-gallery-slider-section::before {
        left: 12px;
        right: 12px;
    }

    .project-gallery-slider-section::after {
        display: none;
    }

    .project-gallery-slider-block {
        --project-gallery-card-radius: 22px;
        height: 370px;
        cursor: pointer;
    }

    .project-gallery-slider-block::after {
        opacity: 0.2;
    }

    .project-gallery-slider-block.custom-cursor-trigger,
    .project-gallery-slider-block.custom-cursor-trigger * {
        cursor: pointer;
    }

    .custom-cursor {
        display: none !important;
    }

    .project-gallery-slider-architecture {
        max-width: 84%;
        padding: 20px 23px 18px 18px;
        border-radius: 0 20px 0 var(--project-gallery-card-radius);
    }

    .project-gallery-slider-architecture a,
    .project-gallery-slider-architecture span > span {
        font-size: var(--fs-17);
    }
}

@media (max-width: 576px) {
    .project-gallery-slider-block {
        --project-gallery-card-radius: 20px;
        height: 320px;
    }

    .project-gallery-slider-architecture {
        max-width: 88%;
        padding: 18px 20px 16px 16px;
        border-radius: 0 18px 0 var(--project-gallery-card-radius);
    }

    .project-gallery-slider-architecture::before,
    .project-gallery-slider-architecture::after {
        width: 18px;
        height: 18px;
    }

    .project-gallery-slider-architecture::before {
        top: -18px;
        border-radius: 0 0 0 18px;
        box-shadow: -9px 9px 0 9px var(--project-gallery-cutout-bg);
    }

    .project-gallery-slider-architecture::after {
        right: -18px;
        border-radius: 0 0 0 18px;
        box-shadow: -9px 9px 0 9px var(--project-gallery-cutout-bg);
    }
}

@media (max-width: 420px) {
    .project-gallery-slider-block {
        height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-gallery-slider-block-image,
    .project-gallery-slider-architecture,
    .custom-cursor {
        transition: none;
    }
}
