﻿html,
body,
form {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: #f4f1ea;
    background-color: #121311;
    background-image:
        radial-gradient(circle at 15% 10%, rgba(123, 116, 91, 0.13), transparent 34%),
        radial-gradient(circle at 85% 85%, rgba(72, 83, 70, 0.12), transparent 38%),
        linear-gradient(145deg, #171815 0%, #0e100f 100%);
    background-attachment: fixed;
    font-family: "Montserrat", Arial, sans-serif;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 42px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(11, 12, 11, 0.78);
    box-sizing: border-box;
}

.site-logo {
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 1.4px;
    line-height: 1;
    text-decoration: none;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-menu a {
    position: relative;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.site-menu a:hover,
.site-menu a:focus {
    color: #ffffff;
}

.page-content {
    width: min(1500px, calc(100% - 48px));
    min-height: calc(100vh - 190px);
    margin: 0 auto;
    padding: 58px 0 82px;
}

.photo-heading {
    max-width: 1000px;
    margin: 0 auto 34px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    color: #a9a58f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.8px;
    text-decoration: none;
    text-transform: uppercase;
}

.back-link:hover,
.back-link:focus {
    color: #ffffff;
    border-color: #ffffff;
}

.album-name {
    margin: 0 0 7px;
    color: #c4bfa8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.photo-heading h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 300;
    line-height: 1;
}

.photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.24);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.30);
    box-sizing: border-box;
}

.photo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    max-width: 1050px;
    margin: 34px auto 0;
}

.photo-description {
    flex: 1 1 auto;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.55;
}

.photo-metadata {
    display: flex;
    flex: 0 0 auto;
    gap: 36px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.metadata-label {
    margin-bottom: 7px;
    color: #a9a58f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.metadata-value {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.page-heading {
    max-width: 850px;
    margin: 0 auto 42px;
    text-align: center
}
.private-header {
    display: flex;
    justify-content: center;
    padding: 24px 42px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(11,12,11,.78)
}
.photo-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.private-menu {
    display: flex;
    gap: 28px
}

    .private-menu a {
        color: rgba(255,255,255,.82);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1.8px;
        text-decoration: none;
        text-transform: uppercase
    }

        .private-menu a.active, .private-menu a:hover {
            color: #fff
        }
.action-link {
    display: inline-block;
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
}

.action-link:hover,
.action-link:focus {
    background: #ffffff;
    color: #111111;
}

.message-panel {
    max-width: 900px;
    margin: 30px auto;
    padding: 54px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.site-footer {
    padding: 28px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
}

@media screen and (max-width: 820px) {
    .photo-details {
        flex-direction: column;
        gap: 28px;
    }

    .photo-metadata {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 700px) {
    .site-header {
        flex-direction: column;
        gap: 18px;
        padding: 20px 16px;
    }

    .site-logo {
        font-size: 29px;
    }

    .site-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }

    .site-menu a {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .page-content {
        width: min(100% - 24px, 1500px);
        padding-top: 42px;
    }

    .photo-heading {
        margin-bottom: 28px;
    }

    .photo-frame {
        padding: 8px;
    }

    .photo-image {
        max-height: 68vh;
    }

    .photo-description {
        font-size: 21px;
        text-align: center;
    }

    .photo-metadata {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
}
