.portfolio-gallery {
    --swiper-theme-color: #e2c28e;
    --swiper-navigation-size: 20px;
    min-width: 0;
}
.portfolio-gallery-status-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    color: #e2c28e;
    background: #0e0e0eb3;
    border: 1px solid #b89b6a33;
    border-radius: 4px;
    font: 500 11px/1 Inter, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.portfolio-gallery .portfolio-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0e0e0e;
    border: 1px solid #b89b6a4d;
    border-radius: 8px;
}
/* Leave room for the header, top spacing and thumbnail strip. */
@media (min-width: 1024px) {
    .portfolio-gallery .portfolio-gallery-main {
        max-height: max(16rem, calc(100svh - 15rem));
    }
}
.portfolio-gallery-main .swiper-wrapper {
    display: flex;
    height: 100%;
}
.portfolio-gallery-main .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}
.portfolio-gallery-main .swiper-zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.portfolio-gallery-main .swiper-zoom-container img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.portfolio-gallery.is-zoomed .swiper-zoom-container {
    cursor: zoom-out;
}
.portfolio-gallery-zoom {
    position: absolute;
    z-index: 10;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #e2c28e;
    background: #0e0e0eb3;
    border: 1px solid #b89b6a33;
    border-radius: 50%;
    cursor: pointer;
}
.portfolio-gallery.is-zoomed .zoom-plus {
    display: none;
}
.portfolio-gallery-zoom[hidden] {
    display: none;
}
.portfolio-gallery-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 8px 0;
}
.portfolio-gallery-video iframe {
    flex: 1;
    min-height: 0;
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
}
.portfolio-gallery-video a {
    color: #e2c28e;
    font-size: 12px;
}
.portfolio-gallery-thumbs button {
    position: relative;
}
.portfolio-gallery-thumb-label {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 6px;
    padding: 3px 4px;
    color: #e2c28e;
    background: #0e0e0ed9;
    border: 1px solid #b89b6a4d;
    border-radius: 3px;
    font: 500 8px/1 Inter, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.portfolio-gallery-play {
    position: absolute;
    inset: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0e0e0e66;
    border-radius: 3px;
}
.portfolio-gallery .swiper-button-prev,
.portfolio-gallery .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #0e0e0eb3;
    border: 1px solid #b89b6a33;
}
.portfolio-gallery .swiper-button-prev svg,
.portfolio-gallery .swiper-button-next svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.portfolio-gallery .swiper-button-prev:hover,
.portfolio-gallery .swiper-button-next:hover {
    background: #0e0e0ee6;
    border-color: #b89b6a80;
}
.portfolio-gallery .swiper-button-disabled {
    opacity: .25;
}
.portfolio-gallery button:focus-visible {
    outline: 2px solid #e2c28e;
    outline-offset: -4px;
}
.portfolio-gallery .portfolio-gallery-thumbs {
    margin-top: 12px;
    overflow: hidden;
}
.portfolio-gallery-thumbs .swiper-wrapper {
    display: flex;
}
.portfolio-gallery-thumbs .swiper-slide {
    width: 76px;
    flex-shrink: 0;
}
.portfolio-gallery-thumbs button {
    display: block;
    width: 76px;
    height: 88px;
    padding: 3px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    opacity: .65;
}
.portfolio-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.portfolio-gallery-thumbs button[aria-pressed="true"] {
    border-color: #e2c28e;
    opacity: 1;
}
.portfolio-gallery-thumbs button:hover {
    opacity: 1;
}
.portfolio-gallery .swiper-button-lock {
    display: none;
}
