.photo-layout .wrapper.content {
    width: min(98%, 1480px);
    padding: 24px 0;
    background: transparent;
}

.photo-layout .item-page [itemprop="articleBody"] {
    display: block;
    max-width: 1480px;
    margin: 0 auto;
}

.photo-layout .item-page .page-header h2 {
    color: #fffdf8;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
}

.photo-layout .photo-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.photo-layout .photo-page[hidden] {
    display: none !important;
}

.photo-layout .photo-album {
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    color: #321704;
    background: #fffdf8;
    border: 1px solid rgba(75, 48, 38, .12);
    border-top: 4px solid #f4ac40;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(50, 23, 4, .10);
}

.photo-layout .photo-album h2,
.photo-layout .photo-album h1,
.photo-layout .photo-album h3,
.photo-layout .photo-album__title {
    margin: 0;
    padding: 0 0 13px;
    color: #321704;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}

.photo-layout .photo-album p:empty {
    display: none;
}

.photo-layout .photo-album .sigFreeContainer {
    margin-top: 0 !important;
}

.photo-layout .photo-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 28px auto 8px;
    padding: 20px 0 8px;
    border-top: 1px solid #d9c9ae;
}

.photo-layout .photo-pagination__button {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #d9c9ae;
    border-radius: 8px;
    background: #fffdf8;
    color: #43260e;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.photo-layout .photo-pagination__button:hover,
.photo-layout .photo-pagination__button:focus-visible {
    border-color: #b77a27;
    background: #f7e8c8;
    color: #321704;
}

.photo-layout .photo-pagination__button[aria-current="page"] {
    border-color: #321704;
    background: #321704;
    color: #fffdf8;
    font-weight: 700;
}

.photo-layout .photo-pagination__button:disabled {
    background: #eee8dc;
    color: #887965;
    cursor: default;
}

.photo-layout .photo-pagination__status {
    flex-basis: 100%;
    color: #fffdf8;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 760px) {
    .photo-layout .wrapper.content {
        width: 100%;
        padding: 14px 12px;
    }

    .photo-layout .photo-page {
        gap: 14px;
    }

    .photo-layout .photo-album {
        padding: 14px;
    }

    .photo-layout .photo-pagination {
        gap: 5px;
        margin-top: 20px;
    }

    .photo-layout .photo-pagination__button {
        min-width: 36px;
        min-height: 38px;
        padding: 0 8px;
        font-size: 13px;
    }
}
