/*--------------------------------------------------------------
# Media Library Section
--------------------------------------------------------------*/
.media-library article {
box-shadow: 0 4px 16px color-mix(in srgb, var(--default-color), transparent 90%);
height: 100%;
border-radius: 10px;
overflow: hidden;
padding: 1em;
}


.media-library .media-category {
font-size: 16px;
color: color-mix(in srgb, var(--default-color), transparent 40%);
margin-bottom: 10px;
}

.media-library .title {
font-size: 20px;
font-weight: 700;
padding: 0;
margin: 0 0 10px 0;
color: var(--heading-color);
}

.media-library .media-author-img {
width: 50px;
border-radius: 50%;
margin-right: 15px;
}

.media-library .media-author {
font-weight: 600;
margin-bottom: 5px;
}

.media-library .media-date {
font-size: 10px;
color: color-mix(in srgb, var(--default-color), transparent 40%);
margin-bottom: 0;
}

.media-library .media-img figure {
aspect-ratio:1/1;
}
.media-library .media-img figure img {
width: 100%;
height: 100%;
object-fit: cover;
}

@media (max-width: 767px) {
.media-library .media-img figure {
max-width: 200px;
}
}


@media (min-width: 768px) {
.media-library .media-img figure {
margin-bottom: 0;
}
}

/*--------------------------------------------------------------
# Modal Common Styles
--------------------------------------------------------------*/
.modal-backdrop.show {
opacity: 0.9;
background-color: rgba(0, 0, 0, 0.9);
}

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

/*--------------------------------------------------------------
# Gallery Modal
--------------------------------------------------------------*/
#galerieModal .modal-dialog {
max-width: 100vw;
max-height: 100vh;
margin: auto;
}

#galerieModal .modal-content {
background-color: transparent;
border: none;
height: 100%;
display: flex;
flex-direction: column;
}

#galerieModal .modal-header {
border: none;
}

#galerieModal .modal-body {
padding: 0;
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}

#galerieModal .galerie-principal {
flex: 1;
text-align: center;
overflow: hidden;
width: calc(100% - 40px);
margin: 0 20px;
}

#galerieModal .galerie-principal img {
max-height: 70vh;
max-width: 100%;
width: auto;
display: inline-block;
}

#galerieModal .galerie-vignettes {
padding: 0;
text-align: center;
}

#galerieModal .galerie-vignettes img {
height: 80px;
width: auto;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.3s;
margin: 0 5px;
}

#galerieModal .galerie-vignettes .slick-current img {
opacity: 1;
border: 2px solid #0d6efd;
}

#galerieModal .text-center {
padding: 10px;
background-color: rgba(0, 0, 0, 0.5);
}

#galerieModal .btn {
color: #FFFFFFAA;
font-size: 1em;
cursor: pointer;
border: none;
padding: 5px 10px;
margin: 0 5px;
}

#galerieModal .btn:hover {
color: #FFFFFFFF;
}

@media (max-width: 767px) {
#galerieModal .modal-body {
padding-bottom: 60px;
}

#galerieModal .galerie-principal {
max-height: 60vh;
}

#galerieModal .text-center {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
z-index: 10;
}

#galerieModal .btn {
font-size: 0.9em;
padding: 8px 12px;
}
}

/*--------------------------------------------------------------
# Video Modal
--------------------------------------------------------------*/
#videoModal .modal-dialog {
max-width: 90vw;
max-height: 90vh;
margin: auto;
display: flex;
}

#videoModal .modal-content {
background-color: transparent;
border: none;
flex: 1;
display: flex;
flex-direction: column;
}

#videoModal .modal-header {
border: none;
}

#videoModal .modal-body {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 0;
overflow: hidden;
}

#videoModal .video {
position: relative;
width: 100%;
max-width: 90vw;
background: #000;
aspect-ratio: 16/9;
}

#videoModal .video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

@supports not (aspect-ratio: 16/9) {
#videoModal .video {
height: 0;
padding-bottom: 56.25%;
}
}

@media (max-width: 767px) {
#videoModal .modal-dialog {
max-width: 95vw;
max-height: 85vh;
}

#videoModal .video {
max-height: 85vh;
}
}
