/* DW Signature: Datweb Gallery Frontend */
.dwbg-wrap,
.dwbg-wrap * {
    box-sizing: border-box;
}

.dwbg-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.dwbg-align-left {
    text-align: left;
}

.dwbg-align-center {
    text-align: center;
}

.dwbg-align-right {
    text-align: right;
}

.dwbg-banner {
    display: block;
    width: 100%;
    margin: 0 0 clamp(22px, 4vw, 46px);
    padding: 0;
    background: transparent;
    border: 0;
    overflow: hidden;
}

.dwbg-banner img,
.dwbg-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
    border-radius: var(--dwbg-radius, 0);
    box-shadow: none;
    object-fit: cover;
}

.dwbg-head {
    width: min(1120px, 100%);
    margin: 0 auto clamp(28px, 4vw, 54px);
    padding: 0;
    background: transparent;
}

.dwbg-title,
.dwbg-subtitle,
.dwbg-year {
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.25;
    background: transparent;
}

.dwbg-title {
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 700;
}

.dwbg-subtitle {
    margin-top: 8px;
    font-size: clamp(20px, 2.2vw, 34px);
    font-weight: 600;
}

.dwbg-text {
    margin: 22px auto 0;
    max-width: 980px;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.75;
    color: inherit;
}

.dwbg-text p {
    margin: 0 0 1em;
}

.dwbg-text p:last-child {
    margin-bottom: 0;
}

.dwbg-year {
    margin-top: 26px;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 600;
}

.dwbg-grid {
    display: grid;
    grid-template-columns: repeat(var(--dwbg-columns, 3), minmax(0, 1fr));
    gap: var(--dwbg-gap, 24px);
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.dwbg-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: hidden;
}

.dwbg-lightbox-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
}

.dwbg-img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--dwbg-radius, 0) !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dwbg-ratio-fixed .dwbg-lightbox-link,
.dwbg-ratio-fixed .dwbg-item > .dwbg-img {
    aspect-ratio: var(--dwbg-ratio, 4/5);
    overflow: hidden;
}

.dwbg-ratio-fixed .dwbg-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dwbg-ratio-auto .dwbg-img {
    height: auto;
    object-fit: contain;
}

.dwbg-caption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: currentColor;
    opacity: .78;
    text-align: center;
}

.dwbg-lightbox-open {
    overflow: hidden;
}

.dwbg-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(0, 0, 0, .88);
}

.dwbg-lightbox-overlay.is-active {
    display: flex;
}

.dwbg-lightbox-img {
    display: block;
    max-width: min(100%, 1500px);
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    border: 0;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .45);
    background: transparent;
}

.dwbg-lightbox-close,
.dwbg-lightbox-prev,
.dwbg-lightbox-next {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.dwbg-lightbox-close:hover,
.dwbg-lightbox-prev:hover,
.dwbg-lightbox-next:hover {
    background: rgba(255, 255, 255, .24);
    transform: scale(1.04);
}

.dwbg-lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.dwbg-lightbox-prev,
.dwbg-lightbox-next {
    top: 50%;
    width: 50px;
    height: 64px;
    border-radius: 14px;
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.dwbg-lightbox-prev:hover,
.dwbg-lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

.dwbg-lightbox-prev {
    left: 18px;
}

.dwbg-lightbox-next {
    right: 18px;
}

@media (max-width: 1024px) {
    .dwbg-grid {
        grid-template-columns: repeat(var(--dwbg-tablet-columns, 2), minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dwbg-grid {
        grid-template-columns: repeat(var(--dwbg-mobile-columns, 1), minmax(0, 1fr));
        gap: max(14px, calc(var(--dwbg-gap, 24px) * .75));
    }

    .dwbg-lightbox-overlay {
        padding: 18px;
    }

    .dwbg-lightbox-prev,
    .dwbg-lightbox-next {
        width: 42px;
        height: 52px;
        font-size: 34px;
    }
}
