/* Een wandeling door Deventer css by DM, 2026. */
/* Website &copy;Scroll-Grid to Nowhere by Mads Stoumann https://codepen.io/stoumann/pen/dPbomXa, inspired by Codepen  */

@import url(https://fonts.googleapis.com/css?family=Lato);

* {box-sizing: border-box}

body {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
    font-weight: normal;
    height: 100dvh;
    margin: 0;
    scrollbar-color: #0003 #0001;
    scrollbar-width: thin;
	width: 100vw;
}

/* Make the image to responsive */
.painting {
	display: block;
	max-width: 92vw;
	max-height: 92vh;
	height: auto;	
}

.ui-scroll-grid {
    container-type: inline-size;
    height: 100dvh;
    list-style-type: none;
    margin: 0;
    overflow: clip auto;
    padding: 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    width: 100vw;
	
    p {
    }


    ol {
        display: flex;
        list-style-type: none;
        overflow: auto clip;
        padding: 0;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    li {
        background: var(--bg);
        box-sizing: border-box;
        color: #FFFD;
        display: grid;
        flex: 0 0 calc(100vw - 1rem);
        font-size: 7.5cqi;
		letter-spacing: 4px;
        height: 100dvh;
        padding-inline: 1rem;
        place-content: center;
        scroll-snap-align: start;
        text-align: center;
        text-wrap: balance;
    }

    & > li {
        &:nth-of-type(1) { --bg: #123; }
        &:nth-of-type(2) { --bg: #187; }
        &:nth-of-type(3) { --bg: #C90; }
        &:nth-of-type(4) { --bg: #D32; }
        &:nth-of-type(5) { --bg: #594; }	
    } 
}
/*
.r1-c1 	{background-color:rgb(255, 0, 0); }
.r1-c2	{--bg: rgb(17, 34, 54, 0.9); }
.r1-c3 	{--bg: rgb(17, 34, 54, 0.80); }
.r1-c4	{--bg: rgb(17, 34, 54, 0.7); }
.r1-c5	{--bg: rgb(17, 34, 54, 0.60); }
*/

.ui-scroll-grid-nav {
    bottom: 2.5rem;
    right: 2.5rem;
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;

    a {
        aspect-ratio: 1;
        background-color: #FFFD;
        border-radius: 50%;
        display: block;
        width: 1rem;
        &.active {
            background-color: #0EF;
        }
    }
}
/* CAPTION */
/* Container needed to position the caption. Adjust the width as needed */
.container {
    position: relative;
    width: 35%;
    max-width: 100%;
}
/* The caption effect - lays on top of the container and over the image */
.caption {
    position: absolute;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.45); /* Black see-through */
    width: 100%;
    transition: .5s ease;
    opacity:0;
    padding: 20px;
	border-top-right-radius: 16px;	
}
.captiontext {
	font-family: 'Lato', serif;
    text-align: left;
    color: #f8f8f8;
    font-size: 20px;
	letter-spacing: 2px;
}
/* When you mouse over the container, fade in the caption title */ 
.container:hover .caption {
    opacity: 1;
}
.names {
	font-size: 4cqi;
}
.slenter{
	letter-spacing: 12px;	
}
.klein, .kleiner {
	font-family: 'Courier New', monospace;
	margin-top: 2em;	
	font-size: 1.25cqi;	
}
.kleiner {
	font-size: 1cqi;	
}
a {
	color: #FFFD;
	text-decoration: none;
}	
a:visited, a:hover, a:active {
	color: #CCC;
	text-decoration: none;
}
a:hover {
	color: #FFFD;
	text-decoration: underline;
}	

/* RESPONVENESS */
@media (max-width:1200px) {
	.container {
		width: 40%;
	}
}
@media (max-width:960px) {
	.ui-scroll-grid-nav {
		bottom: 2rem;
		right:  1.5rem;
    }
	.ui-scroll-grid li {
        font-size: 8.5cqi;
    }	
	.klein  {
		margin-top: 2em;	
		font-size: 2cqi;	
	}
	.kleiner {
		margin-top: 1.5em;
		font-size: 2cqi;	
	}
	.container {
		width: 50%;
	}
}

@media (max-width:800px) {
	.ui-scroll-grid-nav {
		bottom: 2rem;
		right:  1rem;
    }
	.ui-scroll-grid li {
        font-size: 10cqi;
    }
	.klein  {
		margin-top: 2em;	
		font-size: 3cqi;	
	}
	.kleiner {
		margin-top: 1em;
		font-size: 2.5cqi;	
	}
	.container {
		width: 60%;
	}	
}