/* styling gia tis eikones twn pinakwn */
.image-gallery,
.image-gallery2,
.image-gallery3 {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 20px auto;
}

.image-gallery li,
.image-gallery2 li,
.image-gallery3 li {
    flex-basis: calc(33.333% - 20px);
    /* 3 eikones ana seira */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery li:hover,
.image-gallery2 li:hover,
.image-gallery3 li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-gallery li img,
.image-gallery2 li img,
.image-gallery3 li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.image-gallery li:hover img,
.image-gallery2 li:hover img,
.image-gallery3 li:hover img {
    opacity: 0.9;
}

/* gia description text apo tis eikones */
.image-gallery li .overlay,
.image-gallery2 li .overlay,
.image-gallery3 li .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.image-gallery li:hover .overlay,
.image-gallery2 li:hover .overlay,
.image-gallery3 li:hover .overlay {
    opacity: 1;
}

.image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 400px;
}

.image img {
    width: 80%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 100%;
}