[x-cloak] {
    display: none;
}
video::-webkit-media-controls:not(.audio-only) input[pseudo="-webkit-media-controls-timeline" i]::-webkit-slider-thumb {
    background: #000 !important;
}
.rw-gallery-container {
    width: 100%;
}
.rw-gallery-image {
    height: 100%;
}
.rw-gallery-image:hover {
    cursor: pointer;
    filter: brightness(0.7);
}
.rw-gallery-container figure {
    margin: 0;
    height: 100%;
    width: 100%;
}
.rw-gallery-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rw-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    padding: 20px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}
.rw-gallery-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rw-gallery-lightbox-header .pagination {
    color: #fff;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rw-gallery-lightbox-content .control {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgb(0, 0, 0, 0);
    color: #fff;
    border: 1px solid rgb(255, 255, 255);
    font-size: 24px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.rw-gallery-lightbox-content .control.prev {
    left: 20px;
}
.rw-gallery-lightbox-content .control.next {
    right: 20px;
    transform: translateY(-50%) rotate(180deg);
}
.rw-gallery-lightbox-content .control:active {
    scale: 0.9;
}
.rw-gallery-lightbox-header .close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rw-gallery-lightbox-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.rw-gallery-lightbox-image-container {
    display: flex;
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
}
.rw-gallery-lightbox-image-container div {
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rw-gallery-lightbox .rw-gallery-lightbox-image-container img {
    width: auto;
    max-height: 80vh;
    object-fit: contain;
    transition: all 0.3s ease;
    pointer-events: none;
}
.rw-gallery-lightbox-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.rw-lg-image-transition {
    position: absolute;
    transition: all 0.3s linear;
}
.rw-lg-image-start div {
    opacity: 0;
    transform: scale(0.95);
}
.rw-lg-image-start img {
    transform: scale(1.05);
}
.rw-lg-image-end div {
    opacity: 1;
    transform: scale(1);
}
.rw-lg-image-end img {
    transform: scale(1);
}
/* Light box animation */
.rw-lg-transition {
    transition: all 0.3s ease-in-out;
}
.rw-lg-start {
    opacity: 0;
}
.rw-lg-end {
    opacity: 1;
}
.rw-lg-transition .control {
    transition: all 0.4s ease-in-out;
}
.rw-lg-start .control.prev {
    transform: translateX(-15px) translateY(-50%);
    opacity: 1;
}

.rw-lg-start .control.next {
    transform: translateX(15px) translateY(-50%) rotate(180deg);
    opacity: 1;
}

.rw-lg-end .control.next {
    transform: translateX(0px) translateY(-50%) rotate(180deg);
    opacity: 1;
}
.rw-lg-end .control.prev {
    transform: translateX(0px) translateY(-50%);
    opacity: 1;
}


@media screen and (max-width: 768px) {
    .rw-gallery-lightbox-content .control {
        display: none;
    }
}