.post-type-archive-case {
    overflow: hidden;
    background: #797979;
}

.gallery-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #797979;
}

.masonry-grid {
    display: flex;
    gap: 8px;
    align-items: start;
    will-change: transform;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    will-change: transform;
}

.gallery-card {
    width: 100%;
    aspect-ratio: 420 / 690;
    border-radius: 3px;
    background-color: #797979;
    background-image: var(--bg-url);
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
    filter: brightness(0.85) contrast(1.2) sepia(20%) hue-rotate(50deg) saturate(20%);
    position: relative;
    display: block;
    overflow: hidden;
    cursor: none;
    transition:
        filter 0.5s ease,
        background-blend-mode 0.5s ease,
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1);
    will-change: transform, filter;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-card:hover {
    filter: brightness(1.05) contrast(1.1) saturate(100%);
    background-blend-mode: normal;
    transform: scale(0.98);
}

.gallery-card:hover::after {
    opacity: 0;
}

.floating-btn {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 11.25px 22.5px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    will-change: transform, opacity;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.icon-wrapper {
    display: flex;
    height: 6.75px;
    width: 5.926px;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
}

.btn-text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: normal;
    color: #000;
    letter-spacing: 0.75px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .floating-btn {
        display: none;
    }
}
