.thumb{
    margin-bottom: 30px;
}

.page-top{
    margin-top:85px;
}

img.zoom {
    max-width: 100%;
    height: 200px;
    border-radius:5px;
    object-fit:cover;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.transition {
    transform: scale(1.2);
}

/* Styles pour le modal personnalisé */
.modal-content {
    background-color: #2d2d2d;
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #404040;
    background-color: #2d2d2d;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    color: #ffffff;
    font-weight: 600;
}

.modal-body {
    /*background-color: #1d1d1d;*/
    padding: 0;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.modal-footer{
    display:none;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0 0 10px 10px;
    margin: 20px 0;
}

/* Boutons de navigation dans le modal */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.btn-nav-prev {
    left: 20px;
}

.btn-nav-next {
    right: 20px;
}

.btn-nav span {
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Animation d'ouverture du modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Style pour les liens de la galerie */
.gallery-item {
    text-decoration: none;
    display: block;
}

.gallery-item:hover {
    text-decoration: none;
}
