/* * {outline: 1px solid black} */
:root {
    --base-color: #e44a50;
}
html {
    padding: 0;
    margin: 0;
    text-align: center;
}
body {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: #000;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    padding-inline: .8rem;
}
p {
    padding: 0;
    margin: 0 auto;
}
a, a:link, a:active, a:visited {
    color: #111;
    text-decoration: none;
}
a:hover {
    color: #333;  
    text-decoration: none;
}
img {
    border: none;
}
ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
h1, h2, h3, h4, h5 {
    padding: 0;
    margin: 0;
    font-weight: normal;
}
header {
    width: 100%;
    margin-block: .4rem;
    /* display: grid; */
    /* grid-template-columns: 350px 1fr; */
    /* gap: 1rem; */
}
    header a {
        display: block;
        max-width: 400px;
        margin-inline: auto;
        text-decoration: none;
    }
.headerimage {
    display: block;
    width: 100%;
    height: auto; /* Теперь это работает корректно */
    aspect-ratio: 5 / 1;
    object-fit: contain; /* Аналог background-size: cover/contain */
}
.thumbs {
	clear: both;
	font-size: 0;
    margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: .25rem;
}	
	.thumbs a img {
		/* outline: 1px solid #3c3e28; */
	}
	.thumbs a:hover img {
		/* outline: 1px solid #f4f5ed; */
	}
    .thumbs img {
        width: 100%;
        height: auto;
    }
/* .item {
    position: relative; 
    display: block;    
    overflow: hidden;  
    text-decoration: none;
}
    .item picture img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover; 
    }
    .item span {
        position: absolute;
        bottom: 0;
        left: 0;  
        right: 0;            
        background: rgba(0, 0, 0, 0.6); 
        color: #fff;      
        padding: 8px 10px;
        font-size: 1rem;
        text-align: center;
        backdrop-filter: blur(5px);
    } */
.content {
    max-width: 680px;
    margin-inline: auto;
}     
.gallerynav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .4rem;
    text-align: center;
    margin-inline: auto;
}
    .gallerynav a {
		align-self: center;
        font-size: clamp(0.875rem, 0.6359rem + 1.1957vw, 1.5625rem);
        margin-block: .4rem;
        padding-block: .2rem;
		color: #fff;
		background-color: #000;
    	border-radius: .2rem;
        text-transform: uppercase;
         letter-spacing: 2px;
    }
    .gallerynav a:hover {
        background-color: transparent;
        color: var(--base-color);
        outline: #f00;
    }
    .gallerynav a:nth-child(1)::after {
        content: "\25C4";
    }    
    .gallerynav a:nth-child(2)::after {
        content: "full gallery";
    }
    .gallerynav a:nth-child(3)::after {
        content: "\25BA";
    }    
                @media screen and (max-width: 500px) {
                    .gallerynav a {
                        text-transform: none;
                        letter-spacing: 1px;
                    }
                }    
.access {
    clear: both;
    float: right;
    padding-bottom: 1rem;
}
    .access a {
        display: block;
        font-size: clamp(1.0625rem, 0.9755rem + 0.4348vw, 1.3125rem);
        color: #fff;
        background-color: var(--base-color);
        margin-block: .2rem;
        padding: .4rem .8rem;
        letter-spacing: 1px;
    }
    .access a:hover {
        background-color: #ec6d71;
    }
    .access a::after {        
        content: "get access / first 2 weeks for free";
    }
    .access.full {
        float: none;
    }
    .access.full a {
        display: inline-block;
    }
.singleitem {
   
}
    .singleitem img {
        width: 100%;
        height: auto;
    }
.fullgallery {

}    
    .fullgallery img {
        max-width: 100%;
        height: auto;
    }
.pagination {
    clear: both;
    padding-top: 1rem;
    margin-inline: auto;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1rem;
    justify-content: center;
}
    .pagination a {
        justify-self: center;
        font-size: 1.5rem;
        padding: .5rem 2rem;
        background-color: var(--base-color);
        text-decoration: none;
        color: #f6f3ec;
        /* color: #333; */
        border-radius: .5rem;
    }
    .pagination a:hover {
        background-color: transparent;
        text-decoration: none;
        color: var(--base-color);
    }    
footer {
    padding-top: 3rem;
}