.gallery-page {
    padding-top: 80px;
    /* padding-bottom: 200px; */
}

.gallery-hero {
    margin-bottom: 20px;
    padding: 0 var(--padding-side);
}

.gallery-projects {
    padding: 0 var(--padding-side);
}

.gallery-project {
    margin-bottom: 180px;
}

.gallery-project:last-child {
    margin-bottom: 100px;
}

.gallery-project-info-container {
    position: relative;
    max-width: 600px;
}

.gallery-project-info-container p:not(:last-of-type) {
    margin-bottom: 10px;
}

.gallery-project-info-container p:not(.gallery-project-title) {
    color: var(--tx2);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-project-number {
    font-size: 14px;
    margin-bottom: 20px !important;
}

.gallery-project-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px !important;
}

.gallery-project-theme {
    max-width: 400px;
    line-height: 1.6;
    text-transform: none !important;
    font-size: 16px !important;
}

p.gallery-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    text-transform: none !important;
    font-size: 14px !important;
    letter-spacing: 0.03em !important;
}

.gallery-project-tag {
    display: inline;
    color: var(--tx2);
    text-transform: lowercase;
}

.gallery-project-images-container {
    position: relative;
    margin-top: 60px;
    height: 70vh;
    width: 100vw;
    margin-left: calc(var(--padding-side) * -1);
    padding: 0 var(--padding-side);
    display: flex;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-drag: none;
    scroll-snap-type: x mandatory;
}

@media (max-width: 768px) {
    .gallery-project-images-container {
        height: 60vh;
        gap: 20px;
    }
}

.gallery-project-images-container::-webkit-scrollbar {
    display: none;
}

.gallery-project-images-container:active {
    cursor: grabbing;
}

.gallery-project-images-container img,
.gallery-project-images-container video {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
    scroll-snap-align: center;
}

/* Video Mute/Unmute Logic Styles from styles.css */
.video-wrapper {
    position: relative;
    height: 100%;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
}

.mute-ui-container {
    --mute-ui-svg-size: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    user-select: none;
    fill: var(--tx);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    z-index: 10;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.mute-ui-container .mute-svg,
.mute-ui-container .voice-svg {
    position: absolute;
    animation: keyframes-fill .5s;
    width: var(--mute-ui-svg-size);
    height: var(--mute-ui-svg-size);
}

.mute-ui-container .voice-svg {
    display: none;
}

.mute-ui-container input:checked~.mute-svg {
    display: none;
}

.mute-ui-container input:checked~.voice-svg {
    display: block;
}

.mute-ui-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

@keyframes keyframes-fill {
    0% {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }

    50% {
        transform: rotate(-10deg) scale(1.2);
    }
}