/* * {outline: 1px solid black} */
html {
    padding: 0;
    margin: 0;
    text-align: center;
}
body {
    background: url('/images/bg.png');
    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;
}
p {
    margin: 0;
    padding: 0;
    margin-inline: auto;
}
img {
    max-width: 100%;
    height: auto;
    border: none;
}
ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
a {
    text-decoration: none;
}
.wrap {
	width: calc(100% - 2px - 2rem);
    max-width: 1800px;
    margin-inline: auto;
    background: #F5EEDB;
    border-left: 1px solid #927676;
    border-right: 1px solid #927676;
    padding-inline: 1rem;
}
            @media screen and (max-width: 1000px) { 
                .wrap {
                    /* width: 100%; */
                    border: 0;
                }
            }
.main {
    margin: 0 auto;
    max-width: 1000px;
}
.headerimage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 79px;
    width: 252px;
    margin-top: 6px;
    float: left;
}
    .headerimage.part2 {
        background: url('images/small.png') no-repeat;
        width: 162px;
        height: 79px;
        margin: 0;
        padding: 0;
    }
    .headerimage.part3 {
        background: url('images/tits.png') no-repeat;
        width: 90px;
        height: 79px;
        margin: 0;
        padding: 0;
    }
            @media screen and (max-width: 1000px) {
                .headerimage {
                    float: none;
                    margin: 0 auto;
                }
            }
            @media screen and (max-width: 400px) {
                .headerimage {
                    background-size: 100% auto;
                    width: 271px;
                }
                .headerimage.part1 {
                    display: none;
                }
            }
.headertext {
    float: right;
    top: 0;
    max-width: 738px;
    margin: 5px 10px 0 0;
}
    .headertext h1 {
        font-weight: normal;
        margin: 0;
        padding: 0;
        font-size: 1rem;
        line-height: 1;
        color: #46433a;
        text-shadow: 1px 1px 1px #ddd;
    }
    .headertext p {
        color:#111;
        font-size: .85rem;
        padding: 2px 0 0 0;
        text-decoration: none;
        line-height: 1;
    }
            @media screen and (max-width: 1000px) {
                .headertext {
                    clear: both;
                    float: left;
                    width: 98%;
                    max-width: 1000px;
                    margin: 0 0 0 1%;
                    display: none;
                }
            }
.general {
    clear: both;
    margin-inline: auto;
}   
.gallerynav {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 3fr 2fr;
    gap: 1rem;    
}    
    .gallerynav a, .gallerynav span {
        font-size: clamp(1.1875rem, 0.9049rem + 1.413vw, 2rem);
        margin-block: .9rem;
        padding-block: .8rem;
        line-height: 1;
        color: #483A3A;
        background-color: #fff;
        /* border-radius: 4px; */
        outline: 2px solid #483A3A;
        text-decoration: none;
    }
    .gallerynav a:hover {
        color: #ce534d;
        background-color: #fff;
        outline-color: #ce534d;
    }   
    .gallerynav span {
        background-color: transparent;
        font-size: clamp(1.1875rem, 0.9049rem + 1.413vw, 2rem);
        margin-block: .9rem;
        padding-block: .8rem;
        line-height: 1;
        outline: 0;
    }         
.content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;        
}        
        @media screen and (max-width: 1100px) {
            .content {
                grid-template-columns: 1fr;
            }
        }    
.tags {
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    text-transform: lowercase;
    margin-block: .4rem;
}        
    .tags.embed a {
        font-size: clamp(1.125rem, 1.2935rem + -0.2174vw, 1.25rem);
        letter-spacing: 1px;
        text-transform: capitalize;
    }
    .tags a {
        font-size: clamp(0.875rem, 1.1277rem + -0.3261vw, 1.0625rem);
        letter-spacing: 1px;
        flex-shrink: 0;
        background-color: #ce534d;
        color: white;
        padding: .2rem .5rem;
        border-radius: .2rem;
        border: 1px solid #333;
    }
    .tags a:hover {
        background-color: #483A3A;
    }
.tops {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-content: start; 
    padding: .5rem 0 1rem 0;
    justify-items: stretch;
}   
.sidebar {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px,1fr));
    align-content: start; 
    gap: 1rem;
    text-align: center;
} 
    .tops a, .sidebar a {
        /* font-size: clamp(1.25rem, 0.9891rem + 1.3043cqi, 2rem); */
        font-size: clamp(1.5rem, 1.8rem, 2.2rem);
        padding: .6rem 1rem;
        text-decoration: none;
        color: #483A3A;
        outline: 2px solid #483A3A;
        background-color: #fff;
    }
    .tops a:hover, .sidebar a:hover {        
        color: #ce534d;
        outline: 2px solid #ce534d;        
    }
.thumbs {
    clear: both;
    font-size: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .5rem;
    align-content: start;
}
    .thumbs img {
        cursor: pointer;
        outline: 1px solid #483A3A;
		-webkit-user-drag: none;
		user-select: none;
		pointer-events: none;
		display: block;        
    }
    .thumbs img:hover {
        outline: 1px dotted #fff;
    }
	.thumbs a::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 10;
		background: rgba(0,0,0,0);
		pointer-events: none;
	} 	
            @media screen and (max-width: 800px) {
                .thumbs {
                    grid-template-columns: repeat(2, 1fr);
                }
            }
            @media screen and (max-width: 450px) {
                .thumbs {
                    margin-inline: .4rem;
                    grid-template-columns: 1fr;
                }
            }
.botton {
	clear: both;
}
    .button li {
        display: inline-block;
    }
    .button ul li a, .button ul li a:visited {
        background: #fff;
        margin: 0px;
        padding: .5rem 1rem;
        border: 2px solid #483A3A;
        color: #483A3A;
        text-decoration: none;
    }
    .button ul li a:hover {
        background: #fff;
        border: 2px solid #DE564B;
        color: #DE564B;
        text-decoration: none;
    }
.hover-video {
  position: relative;
  width: 100%;
  cursor: pointer;
}
    .hover-video img, .hover-video video {
        width: 100%;
        display: block;
    }

    .hover-video video {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }         
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: .5rem;
}
    .video-container iframe, .video-container object, .video-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }      
#nextpage, #mainpage {
    font-size: 1.8rem;
    margin: 2rem .5rem;
}
            @media screen and (max-width: 420px) {
                #nextpage, #mainpage {
                    font-size: 20px;
                    margin: 24px 1px;
                }
            }
            @media screen and (max-width: 359px) {
                #nextpage, #mainpage {
                    font-size: 18px;
                }
            }
#bottom {
	max-width: 1400px;
	margin: 0 auto;
}
.footer {
    clear: both;
    margin-inline: auto;
    padding-top: 3rem;
    font-size: .8rem;
    max-width: 938px;
    text-align: center;
}
    .footer p {
        padding: 10px 15px 5px 15px
    }
    .footer a {
        font-weight: bold;
	    color: #111;
	    text-decoration: none;
    }
    .footer a:hover {
	    color: #333;
	    text-decoration: underline;
    }
