body.renders-gallery-page {
    background-image: url("../../img/industrial-design-project-photos/Backround Photos/thumbs/renders.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #111;
}

body.renders-gallery-page nav a,
body.renders-gallery-page footer,
body.renders-gallery-page .back-link {
    color: #ffffff;
    text-shadow: 0 6px 10px rgba(0, 0, 0, 0.85);
}

body.renders-gallery-page main {
    width: 100%;
    padding: 2% 6%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.design-scroll-shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.design-scroll-header h1 {
    font-family: "Michroma", sans-serif;
    font-size: 220%;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.design-scroll-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 74ch;
    margin-bottom: 1.2rem;
}

.back-link {
	color: #ffffff;
	text-shadow: none;
    background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.34);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(10, 14, 22, 0.24);
}

.design-scroll-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-height: 72vh;
    overflow-y: auto;
    padding-right: 0.35rem;
    align-items: stretch;
}

.design-scroll-stack::-webkit-scrollbar {
    width: .55rem;
}

.design-scroll-stack::-webkit-scrollbar-thumb {
    background: rgba(255, 184, 143, 0.55);
    border-radius: 999px;
}

.gallery-item {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 233, 221, 0.75);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.photo-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 260ms ease;
    z-index: 80;
}

.photo-viewer-overlay.is-visible {
    opacity: 1;
}

.photo-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(76vw, 70rem);
    height: min(74vh, 50rem);
    display: grid;
    place-items: center;
    padding: 0.75rem;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(39, 18, 12, 0.66), rgba(8, 8, 8, 0.62));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, calc(-50% + 2.4rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms ease, opacity 280ms ease;
    z-index: 90;
}

.photo-viewer.is-open {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

.photo-viewer-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    display: block;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.45);
}

body.renders-gallery-page.photo-viewer-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    body.renders-gallery-page main {
        padding: 2% 3%;
    }

    .design-scroll-header h1 {
        font-size: clamp(1.55rem, 7.4vw, 2rem);
        line-height: 1.1;
    }

    .design-scroll-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 520px) {
    .design-scroll-stack {
        grid-template-columns: 1fr;
    }
}





