.style-gallery-page {
    min-height: 100vh;
    padding: 42px 24px 64px;
    background: #f5f8f3;
    color: #173b35;
}

.style-gallery-header {
    width: min(1240px, calc(100% - 12px));
    margin: 0 auto 30px;
}

.style-gallery-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #527c5d;
    font-weight: 700;
    text-decoration: none;
}

.style-gallery-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.style-gallery-header h1 {
    margin-top: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    line-height: 1.05;
}

.style-gallery-header > p:last-child {
    max-width: 620px;
    margin-top: 12px;
    color: #49635a;
    font-size: 1.05rem;
    line-height: 1.6;
}

.style-gallery-grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.style-gallery-item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #dce5df;
    border-radius: 8px;
}

.style-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.style-gallery-item figcaption {
    min-height: 76px;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.style-gallery-item figcaption strong {
    color: #173b35;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
}

.style-gallery-item figcaption span {
    color: #60756c;
    font-size: 0.9rem;
}

.style-gallery-natural,
.style-gallery-color {
    grid-column: span 3;
}

.style-gallery-natural img,
.style-gallery-color img {
    aspect-ratio: 0.92;
}

.style-gallery-board {
    grid-column: span 6;
}

.style-gallery-board img {
    height: auto;
    object-fit: contain;
}

.style-gallery-collection {
    grid-column: span 6;
}

.style-gallery-collection img {
    aspect-ratio: 0.8;
    object-fit: contain;
    background: #ece9e3;
}

.style-gallery-purple,
.style-gallery-poodle {
    grid-column: span 6;
}

.style-gallery-purple img,
.style-gallery-poodle img {
    height: auto;
    object-fit: contain;
    background: #ece9e3;
}

.style-gallery-note {
    width: min(1240px, 100%);
    margin: 32px auto 0;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-left: 4px solid #df694e;
    background: #e6f0e8;
}

.style-gallery-note p:last-child {
    max-width: 780px;
    margin-top: 7px;
    color: #49635a;
    line-height: 1.55;
}

.style-gallery-note .cover-button {
    flex: none;
}

@media (max-width: 760px) {
    .style-gallery-page {
        padding: 28px 18px 40px;
    }

    .style-gallery-header {
        width: 100%;
        margin-bottom: 22px;
    }

    .style-gallery-header h1 {
        font-size: 38px;
    }

    .style-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .style-gallery-natural,
    .style-gallery-color {
        grid-column: span 1;
    }

    .style-gallery-board,
    .style-gallery-collection,
    .style-gallery-purple,
    .style-gallery-poodle {
        grid-column: 1 / -1;
    }

    .style-gallery-note {
        align-items: start;
        flex-direction: column;
        padding: 18px;
    }
}