﻿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,
.site-menu a.active {
    color: #ffffff;
}

.site-menu a.active::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1px;
    content: "";
    background: #ffffff;
}

.page-content {
    width: min(1500px, calc(100% - 48px));
    min-height: calc(100vh - 190px);
    margin: 0 auto;
    padding: 72px 0 88px;
}

.page-heading {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #a9a58f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(54px, 7vw, 88px);
    font-weight: 300;
    line-height: 1;
}

.intro {
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
    letter-spacing: 0.8px;
    line-height: 1.7;
}

.photo-summary {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    background: #22231f;
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.22);
}

.photo-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
}

.photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 450ms ease;
}

.photo-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 52px 18px 17px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.08) 100%
    );
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.photo-album {
    margin-bottom: 6px;
    color: #c4bfa8;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.photo-title {
    overflow: hidden;
   
    font-size: 12px;
    font-weight: 400;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-date {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.photo-link:hover .photo-image,
.photo-link:focus .photo-image {
    transform: scale(1.055);
}

.photo-link:hover .photo-overlay,
.photo-link:focus .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.message-panel {
    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;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 52px;
}

.pager-link {
    min-width: 100px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
}

.pager-link:hover,
.pager-link:focus {
    background: #ffffff;
    color: #111111;
}

.pager-status {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.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: 1160px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 840px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@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% - 28px, 1500px);
        padding-top: 50px;
    }

    .page-heading {
        margin-bottom: 36px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .photo-overlay {
        opacity: 1;
        transform: none;
    }

    .pager {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 38px;
    }

    .pager-status {
        width: 100%;
        text-align: center;
        order: -1;
    }
}
