.index-gallery{
    background-color: #9b9b9b;
}

.index-signature {
    position: fixed;
    left: 20px;
    bottom: 12px;
    z-index: 20;
    margin: 0;
    font-family: var(--font-aldrich);
    font-size: clamp(2.8rem, 11vw, 12rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: #f3f0ea;
    mix-blend-mode: difference;
    text-shadow: 0 0 18px rgba(243, 240, 234, 0.18);
    pointer-events: none;
    text-transform: uppercase;
}

.index-gallery_grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 8px;
    gap: 60px;
}
.index-gallery_item {
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 0px;
    grid-column: span 4;
}

.index-gallery_item.over-signature {
    z-index: 30;
}

.index-gallery_item img,
.index-gallery_item video {
    width: 100%;
    height: auto;
    display: block;
}

.cursor-circle {
    position: fixed;
    left: 0;
    top: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background-color: #555;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
}

.cursor-circle.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

body.cursor-hidden {
    cursor: none;
}

@media (hover: hover) and (pointer: fine) {
    .index-gallery_item img,
    .index-gallery_item video {
        cursor: none;
    }
}

.index-gallery_item.size-s {
    grid-column: span 3;
}

.index-gallery_item.size-m {
    grid-column: span 4;
}

.index-gallery_item.size-l {
    grid-column: span 6;
}

@media (max-width: 900px) {
    .index-signature {
        left: 12px;
        bottom: 8px;
    }

    .index-gallery_item a {
        pointer-events: none;
        cursor: default;
    }

    .index-gallery_item img,
    .index-gallery_item video {
        cursor: default;
    }

    .index-gallery_grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .index-gallery_item.size-s {
        grid-column: span 3;
    }
    .index-gallery_item.size-m {
        grid-column: span 3;
    }
    .index-gallery_item.size-l {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .index-gallery_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .index-gallery_item.size-s {
        grid-column: span 2;
    }
    .index-gallery_item.size-m {
        grid-column: span 2;
    }
    .index-gallery_item.size-l {
        grid-column: span 4;
    }
}

.cv-crosshair-overlay {
    z-index: 10010;
}
