.galleryWrap .galleryHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}

.galleryWrap .galleryHeading {
    min-width: 0;
}

.galleryWrap .galleryEyebrow {
    display: block;
    margin: 0 0 6px;
    color: #82012d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.galleryWrap .galleryHeader h3 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
    text-wrap: balance;
}

.galleryWrap .galleryAction {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #82012d;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.galleryWrap .galleryAction:focus-visible {
    outline: 3px solid #bd0745;
    outline-offset: 3px;
}

.galleryWrap .galleryAction--primary {
    flex: 0 0 auto;
    padding: 0 15px;
    border-color: rgb(130 1 45 / 18%);
    background: #fff;
    color: #82012d;
}

.galleryWrap .galleryAction--primary::after {
    margin-left: 5px;
    content: '›';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 160ms ease;
}

.galleryWrap .galleryAction--primary:hover {
    border-color: #82012d;
    background: #82012d;
    color: #fff;
}

.galleryWrap .galleryAction--primary:hover::after {
    transform: translateX(2px);
}

.galleryWrap .galleryCarousel .item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #eee9eb;
    box-shadow: 0 9px 26px rgb(46 19 30 / 12%);
}

.galleryWrap .galleryCarousel .item::after {
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(180deg, transparent 20%, rgb(28 12 19 / 45%) 100%);
    content: '';
    pointer-events: none;
}

.galleryWrap .galleryCarousel .item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.galleryWrap .gallerySlideHint {
    position: absolute;
    z-index: 1;
    bottom: 14px;
    left: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 32%);
    border-radius: 999px;
    background: rgb(35 22 28 / 58%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.galleryWrap .gallerySlideHint > span {
    width: 12px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-shadow: 2px -2px 0 -0.5px rgb(35 22 28 / 80%), 2px -2px 0 0 currentColor;
}

.galleryWrap .galleryCarousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
}

.galleryWrap .galleryCarousel .owl-dot span {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0;
    background: #d8cbd0;
    transition: width 160ms ease, background-color 160ms ease;
}

.galleryWrap .galleryCarousel .owl-dot {
    display: block;
    width: auto;
    height: auto;
    padding: 5px;
    border: 0;
    background: transparent;
    font-size: 0;
    line-height: 0;
}

.galleryWrap .galleryCarousel .owl-dot.active span {
    width: 22px;
    border-radius: 999px;
    background: #82012d;
}

.galleryWrap .galleryFooter {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.galleryWrap .galleryAction--secondary {
    min-height: 42px;
    background: transparent;
    color: #82012d;
}

.galleryWrap .galleryAction--secondary:hover {
    background: #82012d;
    color: #fff;
}

@media (max-width: 575px) {
    .galleryWrap .galleryHeader {
        align-items: flex-end;
        gap: 12px;
        margin-bottom: 16px;
    }

    .galleryWrap .galleryHeader h3 {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
    }

    .galleryWrap .galleryAction {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .galleryWrap .galleryAction--primary {
        margin-bottom: 1px;
    }

    .galleryWrap .gallerySlideHint {
        display: inline-flex;
        bottom: 11px;
        left: 11px;
        font-size: 11px;
    }

    .galleryWrap .galleryCarousel .item img {
        aspect-ratio: 5 / 4;
    }

    .galleryWrap .galleryFooter {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .galleryWrap .galleryAction {
        transition: none;
    }

    .galleryWrap .galleryAction--primary::after {
        transition: none;
    }

    .galleryWrap .galleryCarousel .owl-dot span {
        transition: none;
    }
}

.galleryPge .galleryToolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.galleryPge .gallerySortForm {
    display: flex;
    align-items: center;
    gap: 10px;
}

.galleryPge .gallerySortForm label {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.galleryPge .gallerySortForm select {
    min-width: 150px;
    min-height: 40px;
    padding: 0 30px 0 12px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background-color: #fff;
    color: #222;
    font: inherit;
}

.galleryPge .gallerySortForm select:focus-visible {
    border-color: #82012d;
    outline: 3px solid rgb(189 7 69 / 20%);
    outline-offset: 1px;
}

.galleryPge .galleryFolder a {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #f1eef0;
    box-shadow: 0 5px 18px rgb(35 15 23 / 10%);
    color: #fff;
    isolation: isolate;
    text-decoration: none;
    transform: translateZ(0);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.galleryPge .galleryFolder a:focus-visible {
    outline: 3px solid #bd0745;
    outline-offset: 3px;
}

.galleryPge .galleryFolder a:hover {
    box-shadow: 0 10px 26px rgb(35 15 23 / 18%);
    transform: translateY(-3px);
}

.galleryPge .galleryFolder a > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.galleryPge .galleryFolder a:hover > img {
    transform: scale(1.04);
}

.galleryPge .galleryFolder a::after {
    position: absolute;
    z-index: -1;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgb(20 9 14 / 78%) 100%);
    content: '';
    pointer-events: none;
}

.galleryPge .galleryAlbumBadge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 999px;
    background: rgb(32 21 26 / 54%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.galleryPge .galleryAlbumBadge::before {
    width: 10px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-shadow: 2px -2px 0 -0.5px rgb(32 21 26 / 75%), 2px -2px 0 0 currentColor;
    content: '';
}

.galleryPge .galleryName {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.galleryPge .galleryCardCaption {
    position: absolute;
    right: 14px;
    bottom: 13px;
    left: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.galleryPge .galleryCardText {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.galleryPge .galleryOpenCue {
    color: rgb(255 255 255 / 88%);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.galleryPge .galleryCardArrow {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 62%);
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    backdrop-filter: blur(6px);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.galleryPge .galleryFolder a:hover .galleryCardArrow,
.galleryPge .galleryFolder a:focus-visible .galleryCardArrow {
    transform: translateX(2px);
    background: #fff;
    color: #82012d;
}

.galleryPge nav.d-flex.justify-content-between {
    justify-content: center !important;
}

.galleryPge nav > .d-flex.flex-fill.d-sm-none {
    flex: 0 0 auto !important;
    justify-content: center !important;
}

@media (min-width: 576px) {
    .galleryPge nav > .d-none.flex-sm-fill.d-sm-flex {
        position: relative;
        justify-content: center !important;
    }

    .galleryPge nav > .d-none.flex-sm-fill.d-sm-flex > div:first-child {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .galleryPge nav > .d-none.flex-sm-fill.d-sm-flex > div:last-child {
        margin-inline: auto;
    }
}

@media (max-width: 575px) {
    .galleryPge .galleryToolbar,
    .galleryPge .gallerySortForm {
        width: 100%;
    }

    .galleryPge .gallerySortForm {
        flex-wrap: wrap;
    }

    .galleryPge .gallerySortForm select {
        flex: 1 1 145px;
    }

    .galleryPge .galleryFolder a {
        aspect-ratio: 1 / 1;
    }

    .galleryPge .galleryAlbumBadge {
        top: 10px;
        left: 10px;
    }

    .galleryPge .galleryCardCaption {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .galleryPge .galleryName {
        font-size: 15px;
    }

    .galleryPge .galleryOpenCue {
        font-size: 11px;
    }

    .galleryPge .galleryCardArrow {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .galleryPge .galleryFolder a,
    .galleryPge .galleryFolder a > img,
    .galleryPge .galleryCardArrow {
        transition: none;
    }
}
