.gallery {
    width: 255px;
    height: 190px;
}

.gallery-small {
    width: 200px;
    height: 140px;
    /* width: 255px;
    height: 190px; */
}

.gallery2-small {
    width: 220px;
    height: 150px;
}

.hexagon-gallery {
    position: relative;
    top: 6%;
    right: 3%;
    display: grid;
    place-items: center;
    /* background-color: black; */
    /* border: 1px solid red; */
    border-radius: 50%;
}

.hexagon-gallery .hexagon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(2px 2px 5px) saturate(2);
}

.hex1 {
    width: 85px;
    height: 85px;
}

.hex2 {
    width: 100px;
    height: 100px;
}

.hex1-small {
    width: 70px;
    height: 70px;
    /* width: 90px;
    height: 90px; */
}

.hex2-small {
    width: 70px;
    height: 70px;
}

/* Implement Orbiting-like effects on hexagon image cluster */
.spinner {
    display: flex;
    margin: -5px;
    border-radius: 50%;
    /* animation: spin 15s linear infinite; */
}

.spinner-small {
    min-height: 260px;
    width: 100%;
    padding: 50px;
    display: flex;
    margin: -5px;
    border-radius: 50%;
    /* animation: spin 15s linear infinite; */
}

.hex1 img {
    width: 100%;
    object-fit: cover;
    transform: rotate(-360deg);
    /* animation: reverse-spin 15s linear infinite;  */
}

.hex2 img {
    width: 100%;
    object-fit: cover;
    transform: rotate(-360deg);
    /* animation: reverse-spin 15s linear infinite; */
}

.hex1-small img {
    width: 100%;
    object-fit: cover;
    transform: rotate(-360deg);
    /* animation: reverse-spin 15s linear infinite;  */
}

.hex2-small img {
    width: 100%;
    object-fit: cover;
    transform: rotate(-360deg);
    /* animation: reverse-spin 15s linear infinite; */
}

/* @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes reverse-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
} */

/* Keyframes for up, down, left, and right movement */
@keyframes moveUpDownLeftRight {
    0% {
        transform: translate(0, 0);
        /* Start at center */
    }

    25% {
        transform: translate(20px, 0);
        /* Move right */
    }

    50% {
        transform: translate(20px, 30px);
        /* Move down */
    }

    75% {
        transform: translate(0, 30px);
        /* Move left */
    }

    100% {
        transform: translate(0, 0);
        /* Back to center */
    }
}


.hexagon-gallery .hexagon .hex {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #00f, #00e8ff) border-box;
    border: 3px solid transparent;
    display: flex;
    margin: -10px;
    border-radius: 50%;
    animation: moveUpDownLeftRight 15s infinite ease-in-out;
}

.hexagon-gallery .hexagon:nth-child(1) {
    top: 0;
}

.hexagon-gallery .hexagon:nth-child(3) {
    bottom: 0;
}

.hexagon-gallery .hexagon .hex img {
    filter: brightness(.8);
    width: 100%;
    object-fit: cover;
    transition: .3s;
    border-radius: 50%;
}

/* Might not work well with animations applied */
.hexagon-gallery .hexagon .hex:hover img {
    transform: scale(1.1);
    filter: brightness(.8);
}