#componentlayout139094.pagecontent {
    display: block;
    width: 100%;
}

#componentlayout138859.gallery-page {
    background: #fff;
    box-sizing: border-box;
    float: none;
    margin: 0;
    max-width: none;
    padding: 30px 28px 42px;
    width: 100%;
}

.gallery-header {
    margin: 0 0 24px;
}

.gallery-header h1 {
    color: #bd202a !important;
    float: none;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 34px !important;
    font-style: italic !important;
    font-weight: 700 !important;
    margin: 0 0 16px;
    text-align: center !important;
    width: auto;
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: #e8eadf;
    border: 0;
    border-radius: 3px;
    cursor: zoom-in;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.gallery-item[hidden] {
    display: none;
}

.gallery-item img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-item:focus-visible {
    outline: 3px solid #d92b3a;
    outline-offset: 3px;
}

.gallery-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 0;
}

.gallery-page-numbers {
    display: flex;
    gap: 7px;
}

.gallery-pagination button {
    background: #fff;
    border: 1px solid #d3d8cd;
    border-radius: 3px;
    color: #354238;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    min-height: 40px;
    min-width: 40px;
    padding: 0 12px;
}

.gallery-pagination button:hover,
.gallery-pagination button:focus-visible {
    border-color: #709b25;
    outline: 2px solid rgba(112, 155, 37, 0.2);
    outline-offset: 1px;
}

.gallery-pagination button.is-current {
    background: #d92b3a;
    border-color: #d92b3a;
    color: #fff;
}

.gallery-pagination button:disabled {
    cursor: default;
    opacity: 0.45;
}

.gallery-page-status {
    color: #65705f;
    font-size: 13px;
    margin: 10px 0 0;
    text-align: center;
}

#componentlayout139094.pagecontent #gallery-page-status {
    color: #596544 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.gallery-viewer {
    align-items: center;
    background: #101312;
    border: 0;
    box-sizing: border-box;
    color: #fff;
    gap: 18px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    height: auto;
    inset: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    padding: 52px 34px 24px;
    width: auto;
}

.gallery-viewer[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
}

.gallery-viewer::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.gallery-viewer figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    margin: 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

#gallery-viewer-image {
    display: block;
    flex: 1;
    height: 0;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
}

#gallery-viewer-caption {
    color: #f3f3ef;
    font-size: 14px;
    line-height: 1.4;
    padding-top: 12px;
    text-align: center;
}

.gallery-viewer button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 32px;
    height: 48px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 48px;
}

.gallery-viewer button:hover,
.gallery-viewer button:focus-visible {
    background: rgba(255, 255, 255, 0.26);
}

.gallery-viewer .gallery-close {
    font-size: 29px;
    position: absolute;
    right: 18px;
    top: 12px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #componentlayout138859.gallery-page {
        padding: 36px 16px 56px;
    }

    .gallery-grid {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-viewer {
        gap: 8px;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding: 54px 10px 18px;
    }

    .gallery-viewer button {
        font-size: 26px;
        height: 40px;
        width: 40px;
    }
}