html
Copy code
Image Enlarger Tool
2. CSS (styles.css)
css
Copy code
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
color: #333;
margin: 0;
padding: 0;
}
.container {
text-align: center;
padding: 20px;
}
h1 {
color: #4CAF50;
margin-bottom: 20px;
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.gallery a {
margin: 10px;
border: 2px solid #4CAF50;
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s, box-shadow 0.2s;
}
.gallery a:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.gallery img {
display: block;
max-width: 100%;
height: auto;
}
@media (max-width: 768px) {
.gallery a {
width: 45%;
}
}
@media (max-width: 480px) {
.gallery a {
width: 100%;
}
}
/* Lightbox Customization */
.lightboxOverlay {
background-color: rgba(0, 0, 0, 0.8) !important;
}
.lightbox .lb-image {
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.lightbox .lb-close {
background-color: #4CAF50 !important;
border-radius: 50%;
color: #fff !important;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
top: 10px;
right: 10px;
}