.eac78-gallery {
display: grid;
gap: 15px;
margin: 20px 0;
}
.eac78-gallery[data-columns="2"] {
grid-template-columns: repeat(2, 1fr);
}
.eac78-gallery[data-columns="3"] {
grid-template-columns: repeat(3, 1fr);
}
.eac78-gallery[data-columns="4"] {
grid-template-columns: repeat(4, 1fr);
}
.eac78-gallery[data-columns="5"] {
grid-template-columns: repeat(5, 1fr);
}
.eac78-gallery-item {
position: relative;
overflow: hidden;
border-radius: 8px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
background: #f5f5f5; }
.eac78-gallery-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0);
transition: background 0.3s ease;
pointer-events: none;
z-index: 1;
}
.eac78-gallery-item:hover::before {
background: rgba(0, 0, 0, 0.1);
}
.eac78-gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.eac78-gallery-item img {
width: 100%;
height: 250px;
object-fit: cover;
transition: transform 0.3s ease;
display: block;
}
.eac78-gallery-item:hover img {
transform: scale(1.05);
} .eac78-single-image {
margin: 20px 0;
display: inline-block;
}
.eac78-single-image.alignleft {
float: left;
margin-right: 20px;
margin-bottom: 10px;
}
.eac78-single-image.alignright {
float: right;
margin-left: 20px;
margin-bottom: 10px;
}
.eac78-single-image.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.eac78-single-image .eac78-gallery-item img {
height: auto;
max-width: 100%;
} .eac78-gallery-item-wrapper {
position: relative;
}
.eac78-image-caption, .eac78-gallery-caption {
margin-top: 8px;
font-size: 0.9em;
color: #666;
font-style: italic;
text-align: center;
padding: 0 10px;
} .eac78-lightbox {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.eac78-lightbox.active {
opacity: 1;
visibility: visible;
}
.eac78-lightbox-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0,0,0,0.3); transform: scale(0.9);
transition: transform 0.3s ease;
}
.eac78-lightbox.active .eac78-lightbox-content {
transform: scale(1);
}
.eac78-lightbox-image-container {
position: relative;
background: #000;
display: flex;
align-items: center;
justify-content: center;
min-height: 300px;
}
.eac78-lightbox-image {
width: auto;
height: auto;
max-width: 90%;
max-height: 70vh;
object-fit: contain;
display: none;
margin: 0 auto;
}
.eac78-lightbox-image.loaded {
display: block !important;
}
.eac78-lightbox-header {
padding: 15px 20px;
background: #f8f9fa;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
}
.eac78-lightbox-title {
margin: 0;
font-size: 18px;
color: #333;
font-weight: 600;
}
.eac78-lightbox-close {
background: none;
border: none;
font-size: 28px;
cursor: pointer;
color: #666;
padding: 0;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s ease;
line-height: 1;
}
.eac78-lightbox-close:hover {
background: #e9ecef;
color: #000;
transform: rotate(90deg);
}
.eac78-lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.9);
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
color: #333;
transition: all 0.2s ease;
z-index: 10;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.eac78-lightbox-nav:hover {
background: white;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
transform: translateY(-50%) scale(1.1);
}
.eac78-lightbox-nav.prev {
left: 20px;
}
.eac78-lightbox-nav.next {
right: 20px;
}
.eac78-lightbox-nav:disabled {
opacity: 0.3;
cursor: not-allowed;
transform: translateY(-50%) scale(1);
}
.eac78-lightbox-nav:disabled:hover {
transform: translateY(-50%) scale(1);
}
.eac78-lightbox-footer {
padding: 15px 20px;
background: #f8f9fa;
border-top: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
}
.eac78-image-counter {
color: #666;
font-size: 14px;
font-weight: 500;
} .eac78-lightbox-caption {
color: #666;
font-size: 14px;
font-style: italic;
max-width: 60%;
text-align: right;
} .eac78-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border: 4px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: eac78-spin 0.8s linear infinite;
}
@keyframes eac78-spin {
to { transform: translate(-50%, -50%) rotate(360deg); }
} @media (max-width: 768px) {
.eac78-gallery[data-columns="3"],
.eac78-gallery[data-columns="4"],
.eac78-gallery[data-columns="5"] {
grid-template-columns: repeat(2, 1fr);
}
.eac78-gallery-item img {
height: 200px;
}
.eac78-lightbox-nav {
width: 40px;
height: 40px;
font-size: 20px;
}
.eac78-lightbox-nav.prev {
left: 10px;
}
.eac78-lightbox-nav.next {
right: 10px;
}
.eac78-lightbox-footer {
flex-direction: column;
gap: 10px;
}
.eac78-lightbox-caption {
max-width: 100%;
text-align: center;
} .eac78-single-image.alignleft,
.eac78-single-image.alignright {
float: none;
margin: 20px auto;
display: block;
}
}
@media (max-width: 480px) {
.eac78-gallery {
grid-template-columns: 1fr !important;
gap: 10px;
}
.eac78-gallery-item img {
height: 250px;
}
.eac78-lightbox-content {
margin: 10px;
max-width: calc(100vw - 20px);
max-height: calc(100vh - 20px);
}
.eac78-lightbox-header,
.eac78-lightbox-footer {
padding: 10px 15px;
}
.eac78-lightbox-title {
font-size: 16px;
}
} .eac78-gallery-item:focus,
.eac78-lightbox-nav:focus,
.eac78-lightbox-close:focus {
outline: 2px solid #0073aa;
outline-offset: 2px;
} @media (prefers-color-scheme: dark) {
.eac78-lightbox-header,
.eac78-lightbox-footer {
background: #1a1a1a;
border-color: #333;
}
.eac78-lightbox-title,
.eac78-image-counter,
.eac78-lightbox-caption {
color: #e0e0e0;
}
.eac78-lightbox-close {
color: #e0e0e0;
}
.eac78-lightbox-close:hover {
background: #333;
color: #fff;
}
}