* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #111;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
}

body > nav {
    position: absolute;
    top: 35px;
    right: 50px;
    display: flex;
    gap: 30px;
    z-index: 10;
}

body > nav a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color .3s ease;
}

body > nav a:hover {
    color: #fff;
}

header {
    text-align: center;
    padding: 110px 20px 70px;
}

header h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 1px;
}

header p {
    margin-top: 12px;
    color: #888;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

header p a {
    color: #888;
    text-decoration: none;
    transition: color .3s ease;
}

header p a:hover {
    color: #fff;
}

header p span {
    margin: 0 6px;
    letter-spacing: 0;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.years {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

a.year {
    position: relative;
    display: block;
    height: 300px;
    background: #222;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.photo-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    overflow: hidden;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: photo-spin .7s linear infinite;
    pointer-events: none;
}

@keyframes photo-spin {
    to {
        transform: rotate(360deg);
    }
}

.photo-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.year .photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(17, 17, 17, 0.4);
    pointer-events: none;
    transition: background .6s ease;
}

.year:hover .photo-frame::after {
    background: rgba(17, 17, 17, 0.65);
}

.year:hover .photo-frame img {
    transform: scale(1.06);
}

.year-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    padding: 16px;
}

.year-title.theme-name {
    font-size: 24px;
    letter-spacing: 1px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

a.photo {
    display: block;
    height: 300px;
    background: #222;
    overflow: hidden;
}

.photo:hover .photo-frame img {
    transform: scale(1.06);
}

.empty {
    text-align: center;
    color: #888;
    font-size: 15px;
}

#kontakt {
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 80px 20px;
    border-top: 1px solid #292929;
    text-align: center;
}

#kontakt h2 {
    font-size: 32px;
    font-weight: 400;
}

#kontakt p {
    color: #888;
    margin-top: 15px;
}

.email {
    display: inline-block;
    margin-top: 25px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    transition: border-color .3s ease;
}

.email:hover {
    border-color: #fff;
}

footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 11px;
}

.glightbox-container .gslide-media.gslide-image {
    position: relative;
}

.exif-infobox {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #111;
    color: #111;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: none;
}

.zoomed .exif-infobox {
    display: none;
}

@media (max-width: 800px) {
    body > nav {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        padding-top: 25px;
        gap: 20px;
    }

    header {
        padding-top: 60px;
    }

    header h1 {
        font-size: 36px;
    }

    .years,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .year,
    .photo {
        height: 230px;
    }

    .year-title {
        font-size: 32px;
    }

    .year-title.theme-name {
        font-size: 22px;
    }

    .exif-infobox {
        gap: 12px;
        padding: 6px 12px;
        font-size: 11px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }
}
