html {
    background: #f7f0e6;
}

body.date-labels-page {
    margin: 0;
    min-height: 100vh;
    background: #f7f0e6;
    color: #241d18;
    font-family: Arial, Helvetica, sans-serif;
}

.date-labels-shell {
    width: min(100% - 40px, 1088px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 8px 0;
    box-sizing: border-box;
    background: #f7f0e6;
}

.date-labels-hero img,
.date-labels-footer img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.date-labels-hero {
    position: relative;
    background: #f7f0e6;
}

.date-labels-hero img {
    height: auto;
    object-fit: initial;
}

.date-labels-footer img {
    width: 100%;
}

.date-labels-hero h1 {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(680px, 62vw);
    margin: 0;
    transform: translate(-50%, -50%);
    color: #4a4f55;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 2.8vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 2px 10px rgba(255, 248, 235, 0.72);
}

.date-labels-hero h1 span {
    display: block;
    white-space: nowrap;
}

.date-labels-back {
    max-width: 1088px;
    margin: 10px auto 0;
    padding: 0 18px;
    box-sizing: border-box;
}

.date-labels-back a {
    color: #4a4f55;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.date-labels-back a::before {
    content: "\2190";
    margin-right: 8px;
}

.date-labels-back a:hover,
.date-labels-back a:focus {
    color: #8a6a38;
    text-decoration: underline;
}

.date-labels-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 54px;
    max-width: 980px;
    margin: 0 auto;
    padding: 72px 44px 82px;
    box-sizing: border-box;
}

.date-labels-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    position: relative;
    z-index: 0;
}

.date-labels-item img {
    display: block;
    max-width: 100%;
    max-height: 188px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(61, 48, 35, 0.16));
    transition: transform 180ms ease, filter 180ms ease;
}

.date-labels-item:hover,
.date-labels-item:focus-within {
    z-index: 1;
}

.date-labels-item:hover img,
.date-labels-item:focus-within img {
    filter: drop-shadow(0 18px 22px rgba(61, 48, 35, 0.22));
    transform: scale(1.8);
}

.date-labels-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 42px;
    text-align: center;
    color: #6f654f;
    font-size: 20px;
}

.date-labels-footer {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .date-labels-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
        padding: 58px 34px 68px;
    }
}

@media (max-width: 720px) {
    .date-labels-shell {
        width: 100%;
    }

    .date-labels-hero h1 {
        width: 58vw;
        font-size: clamp(24px, 6vw, 42px);
    }

    .date-labels-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
        padding: 42px 22px 54px;
    }

    .date-labels-back {
        padding: 0 16px;
    }

    .date-labels-item {
        min-height: 150px;
    }

    .date-labels-item img {
        max-height: 150px;
    }
}

@media (max-width: 430px) {
    .date-labels-gallery {
        grid-template-columns: 1fr;
    }
}
