*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 1.1em;
    text-align: justify;
    height: 100%;
    margin: 0;
    font-family: "Cardo", serif;
}

body {
    margin: 0;
}

h1 {
    font-family: "Vollkorn SC", serif;
    font-size: 1.5em;
    margin: 1.5em 0 0;
}

h1:first-child {
    margin: 0;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
}

a:hover {
    color: dimgray;
}

.background {
    background-image: url(../img/bg2.jpg);
    background-size: cover;
    background-position: center;
    position: fixed;
    inset: 0;
    z-index: -1;
}

section {
    max-width: 1000px;
    width: 90%;
    margin: 5% auto;
    background-color: rgba(255,255,255,.5);
    padding: 5%;
}

.album {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 1em 0;
}

.album a {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: .3s;
}

.album a:hover {
    box-shadow: 0px 0px 13px 10px rgba(0, 0, 0, .3);
}

.album img {
    width: 100%;
}

.contact {
    max-width: 500px;
    margin: 1em auto;
    display: flex;
    flex-direction: column;
}

.contact .table {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 5px;
}

.text {
    font-family: 'Vollkorn SC';
}

.table input, .contact textarea {
    border: 1px solid darkolivegreen;
    background: #fbf7ebe6;
}

.contact textarea {
    aspect-ratio: 2 / 1;
    margin: 5px 0;
}

.button {
    font-family: 'Vollkorn SC';
    font-size: 1em;
    color: beige;
    padding: 5px;
    background: linear-gradient(0deg, darkolivegreen, olive);
    border: none;
    cursor: pointer;
}

.button:active {
    background: linear-gradient(180deg, darkolivegreen, olive);
}

.hlaska {
    font-style: italic;
}

footer {
    width: 100%;
    color: white;
    background: black;
    font-size: .6em;
    text-align: center;
    padding: 3px;
    position: relative;
    bottom: 0;
}

@media (max-width:700px) {
    .album {
	grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:350px) {
    section {
	width: 100%;
	margin: 0;
    }
    
    .album {
	grid-template-columns: 1fr;
    }
    
    .contact .table {
	grid-template-columns: 1fr;
    }
    
    .contact textarea {
	aspect-ratio: 2 / 3;
    }
}