.wepop-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 9999;
}
.wepop-overlay.open {
opacity: 1;
}
body.wepop-noscroll {
overflow: hidden;
touch-action: none;
overscroll-behavior: none;
}
.wepop-content {
max-width: 90vw;
max-height: 90vh;
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
}
.wepop-img-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
.wepop-img {
max-width: 100%;
max-height: 90vh;
width: auto;
height: auto;
object-fit: contain;
display: block;
transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.wepop-img-next {
position: absolute;
top: 0;
left: 0;
}
.wepop-close {
position: fixed;
top: 10px;
right: 10px;
font-size: 40px;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
color: white;
background: none;
border: none;
cursor: pointer;
z-index: 10001;
}
.wepop-prev,
.wepop-next {
position: fixed;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
background: none;
border: none;
cursor: pointer;
color: white;
font-size: 24px;
display: flex;
justify-content: center;
align-items: center;
z-index: 10001;
}
.wepop-prev {
left: 10px;
}
.wepop-next {
right: 10px;
}
.wepop-prev::before,
.wepop-next::before {
content: '';
width: 20px;
height: 20px;
border-top: 3px solid white;
border-right: 3px solid white;
position: absolute;
}
.wepop-prev::before {
transform: rotate(-135deg);
}
.wepop-next::before {
transform: rotate(45deg);
}
.wepop-alt-text {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
text-align: center;
}
.wepop-close:focus,
.wepop-prev:focus,
.wepop-next:focus {
outline: none;
}
.wepop-close:hover,
.wepop-prev:hover,
.wepop-next:hover {
opacity: 0.8;
}