.igl-lightbox-item {
cursor: pointer;
transition: opacity 0.3s ease;
}
.igl-lightbox-item:hover {
opacity: 0.8;
}
.igl-lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;
display: none;
opacity: 0;
transition: opacity 0.3s ease;
}
.igl-lightbox.active {
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
}
.igl-lightbox-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.85);
z-index: 1;
}
.igl-lightbox-content {
position: relative;
z-index: 2;
max-width: 90%;
max-height: 90%;
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.igl-lightbox-close {
position: absolute;
top: 10px;
right: 15px;
background: none;
border: none;
font-size: 28px;
color: #fff;
cursor: pointer;
z-index: 3;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
transition: background 0.2s ease;
}
.igl-lightbox-close:hover {
background: rgba(0, 0, 0, 0.8);
}
.igl-lightbox-image-container {
max-width: 100%;
max-height: calc(100vh - 120px);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.igl-lightbox-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.igl-lightbox-controls {
display: flex;
width: 100%;
padding: 15px;
background: #f5f5f5;
border-top: 1px solid #ddd;
gap: 10px;
}
.igl-lightbox-btn {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
transition: all 0.2s ease;
}
.igl-view-btn {
background: #3498db;
color: white;
}
.igl-view-btn:hover {
background: #2980b9;
}
.igl-download-btn {
background: #2ecc71;
color: white;
}
.igl-download-btn:hover {
background: #27ae60;
} @media (max-width: 768px) {
.igl-lightbox-content {
max-width: 95%;
max-height: 95%;
}
.igl-lightbox-controls {
flex-direction: column;
padding: 10px;
}
.igl-lightbox-btn {
padding: 10px 15px;
font-size: 14px;
}
.igl-lightbox-close {
top: 5px;
right: 10px;
font-size: 24px;
width: 35px;
height: 35px;
}
} .igl-lightbox-content {
animation: igl-scaleIn 0.3s ease;
}
@keyframes igl-scaleIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}.wp-site-blocks>footer,.wp-site-blocks>header,.wp-site-blocks>main{margin-block-end:0!important;margin-block-start:0!important}