.report-images-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin: 30px 0;
}
.report-image-wrapper {
position: relative;
cursor: pointer;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.report-image-wrapper:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.report-image-wrapper img {
width: 100%;
height: auto;
display: block;
}
.report-image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
padding: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}
.report-image-wrapper:hover .report-image-overlay {
opacity: 1;
}
.report-image-overlay p {
color: white;
font-size: 14px;
margin: 0;
font-weight: 500;
}
/* Lightbox Modal */
.relm-lightbox {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.95);
overflow: auto;
}
.relm-lightbox-content {
position: relative;
margin: auto;
padding: 40px 20px;
width: 90%;
max-width: 1200px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.relm-lightbox img {
max-width: 100%;
max-height: 70vh;
object-fit: contain;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.relm-close {
position: absolute;
top: 20px;
right: 35px;
color: #f1f1f1;
font-size: 50px;
font-weight: 300;
cursor: pointer;
transition: color 0.3s ease;
line-height: 1;
}
.relm-close:hover {
color: #bbb;
}
.relm-download-cta {
background: linear-gradient(135deg, #003174 0%, #005ccd 100%);
color: white;
padding: 16px 40px;
border: none;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 92, 205, 0.4);
text-transform: uppercase;
letter-spacing: 0.5px;
text-decoration: none;
display: inline-block;
}
.relm-download-cta:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 92, 205, 0.6);
color: white;
}
@media (max-width: 768px) {
.report-images-container {
grid-template-columns: 1fr;
}
.relm-lightbox-content {
padding: 20px 10px;
}
.relm-close {
font-size: 40px;
right: 20px;
}
}
function openRelmLightbox(imgSrc) {
const lightbox = document.getElementById(‘relmLightbox’);
const lightboxImg = document.getElementById(‘relmLightboxImg’);
lightboxImg.src = imgSrc;
lightbox.style.display = ‘block’;
document.body.style.overflow = ‘hidden’;
}
function closeRelmLightbox(event) {
const lightbox = document.getElementById(‘relmLightbox’);
// Only close if clicking the overlay or close button
if (event.target === lightbox || event.target.className === ‘relm-close’) {
lightbox.style.display = ‘none’;
document.body.style.overflow = ‘auto’;
}
}
// Close lightbox on Escape key
document.addEventListener(‘keydown’, function(event) {
if (event.key === ‘Escape’) {
const lightbox = document.getElementById(‘relmLightbox’);
if (lightbox.style.display === ‘block’) {
lightbox.style.display = ‘none’;
document.body.style.overflow = ‘auto’;
}
}
});