.realisaations-header-container {
    background-image: url('../../images/printer.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.realisations-header-cover {
    color: white;
}

.realisations-header-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    z-index: -1;
}

.realisations-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1.2rem;
    overflow: hidden;
}

.realisation-image {
    position: relative;
    width: 100%;
    height: 30dvh;
    border-radius: 1rem;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 1rem;
}

.realisation-info {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, #054a87b0 30%, #054a878d, transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border-radius: 1rem;
}

.realisation-title {
    font-size: 1.2rem;
    color: var(--primary-50);
}

@media only screen and (min-width: 992px) {
    .realisations-container {
        margin-top: 5rem;
    }

    .realisations-content {
        margin-top: 2.5rem;
    }

    .realisations-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .realisation-image {
        height: 30dvh;
    }

    .realisation-image img {
        aspect-ratio: 16/9;
        object-position: center top;
    }
}

/* Lightbox container */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 7000;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Lightbox content */
.lightbox-content {
    /* position: relative; */
    width: 80%;
    height: 80%;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Image styling */
#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 10px;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Controls (prev/next) */
.lightbox-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.control-btn {
    background: white;
    color: black;
    font-size: 30px;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#prev {
    left: 1.5rem;
}

#next {
    right: 1rem;
}

.control-btn:disabled {
    background-color: gray;
    cursor: not-allowed;
}

#lightbox-title {
    color: white;
    margin-bottom: 2rem;
}
