
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.inner-content {
    width: 75%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    height: 400px;
    position: relative;
}

.inner-content .ornement {
    width: 100px;
}

.inner-content img:not(.ornement) {
    width: 40%;
    height: 90%;
    object-fit: cover;
    user-select: none;
    cursor: zoom-in;
    transition: transform 0.25s ease,
                filter 0.25s ease,
                opacity 0.25s ease;

    clip-path: polygon(0% 0%,
                       100% 0%,
                       95% 50%,
                       100% 100%,
                       0% 100%,
                       5% 50%);

    opacity: 0.85;
}

.inner-content img:not(.ornement):hover {
    transform: scale(1.02);
    opacity: 1;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox-overlay.is-open .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {

    .inner-content {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        height: 100%;
        align-content: center;
        display: flex;
        flex-direction: column;
        margin: 0px;
    }

    .inner-content img:not(.ornement){
        margin: 15px;
        width: 300px;
        transition: none;
        cursor: default;
        opacity: 1;
        aspect-ratio: 16/9;
    }

    .inner-content img:not(.ornement):hover {
        transform: none;
        opacity: 1;
    }

    .content .ornement{
        display: none;
    }

    /* disable the lightbox on mobile */
    .lightbox-overlay {
        display: none;
    }
}