.record-grid-wrapper {
    position: relative;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 10px;
    background: rgb(0, 0, 0);
    padding: 15px;
    border-radius: 4px;
}

@keyframes recordFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.record-item {
    position: relative;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    animation: recordFadeIn 0.35s ease-out;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.record-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.record-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.record-item.zoomed {
    position: absolute;
    z-index: 100;
    cursor: zoom-out;
    overflow: visible;
    transition: width 0.4s ease, left 0.4s ease, top 0.4s ease;
}

.record-item.zoom-source-hidden {
    opacity: 0;
    pointer-events: none;
}

.record-grid-wrapper.has-zoomed .record-item:not(.zoomed):not(.zoom-source-hidden) {
    opacity: 0.12;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.record-cover-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.record-cover-img.shift-left {
    transform: translateX(-20%);
}

.vinyl-slide-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translateX(0%);
    transition: transform 0.5s ease;
}

.vinyl-slide-wrapper.slide-out {
    transform: translateX(50%);
}

.vinyl-spin-img {
    width: 100%;
    height: 100%;
    display: block;
}

.vinyl-spin-img.spinning {
    animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.record-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.record-pagination button {
    background: none;
    border: 1px solid var(--link-color);
    color: white;
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
}

.record-pagination button.active {
    background: var(--link-color);
    color: black;
}

@media screen and (max-width: 920px) {
    .record-grid-wrapper {
        gap: 6px;
        padding: 8px;
    }
}
