.project-slide,
.project-slide-media {
height: 100%;
}
.project-slide-img,
.project-slide-video-button {
display: block;
width: 100%;
height: 100%;
min-height: 650px;
border: 0;
padding: 0;
background-color: transparent;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: zoom-in;
appearance: none;
}
.project-slide-video-button {
position: relative;
overflow: hidden;
}
.project-slide-video {
width: 100%;
height: 100%;
min-height: 650px;
object-fit: cover;
display: block;
}
body.project-lightbox-open {
overflow: hidden;
}
.project-lightbox {
position: fixed;
inset: 0;
z-index: 99999;
background: #fff;
display: none;
}
.project-lightbox.is-open {
display: flex;
flex-direction: column;
}
.project-lightbox__top {
height: 70px;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
padding: 0 1.25rem;
border-bottom: 1px solid rgba(0, 0, 0, .1);
background: #fff;
flex: 0 0 auto;
}
.project-lightbox__count {
font-size: .95rem;
font-weight: 600;
justify-self: start;
}
.project-lightbox__title {
text-align: center;
justify-self: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.project-lightbox__close {
border: 0;
background: transparent;
font-size: 2.75rem;
line-height: 1;
cursor: pointer;
padding: 0;
color: white;
justify-self: end;
}
.project-lightbox__body {
flex: 1;
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
min-height: 0;
}
.project-lightbox__thumbs {
overflow-y: auto;
padding: 1rem;
border-right: 1px solid rgba(0, 0, 0, .1);
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: .5rem;
align-content: start;
background: #f3faff;
}
.project-lightbox__thumb {
position: relative;
border: 2px solid transparent;
padding: 0;
background: #e9ecef;
cursor: pointer;
aspect-ratio: 4 / 3;
overflow: hidden;
}
.project-lightbox__thumb.is-active {
border-color: var(--bs-primary);
}
.project-lightbox__thumb img,
.project-lightbox__thumb video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.project-lightbox__play {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, .7);
color: #fff;
font-size: .75rem;
font-weight: 700;
line-height: 1;
padding: .45rem .6rem;
border-radius: 999px;
pointer-events: none;
}
.project-lightbox__main {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 0;
padding: 2rem 4rem;
background: #fff;
}
.project-lightbox__image-wrap {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
}
.project-lightbox__image,
.project-lightbox__video {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
display: block;
}
.project-lightbox__video {
background: #000;
}
.project-lightbox__arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
border: 0;
background: rgba(255, 255, 255, .85);
cursor: pointer;
padding: .5rem;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.project-lightbox__arrow svg {
width: 28px;
height: 28px;
stroke: var(--bs-secondary);
}
.project-lightbox__arrow:hover svg {
stroke: var(--bs-primary);
}
.project-lightbox__arrow--prev {
left: 1rem;
}
.project-lightbox__arrow--next {
right: 1rem;
}
@media (max-width: 991.98px) {
.project-slide-img,
.project-slide-video-button,
.project-slide-video {
min-height: 0;
}
.project-lightbox__body {
grid-template-columns: 1fr;
grid-template-rows: minmax(0, 1fr) auto;
}
.project-lightbox__thumbs {
order: 2;
display: flex;
overflow-x: auto;
overflow-y: hidden;
border-right: 0;
border-top: 1px solid rgba(0, 0, 0, .1);
}
.project-lightbox__thumb {
width: 90px;
flex: 0 0 90px;
}
.project-lightbox__main {
padding: 1rem;
}
.project-lightbox__arrow {
font-size: 3rem;
padding: .25rem .75rem;
}
}
.project-lightbox__heading {
display: flex;
flex-direction: column;
gap: .15rem;
}
.project-lightbox__image-wrap {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.25s ease;
}
.project-lightbox__image-wrap.is-fading {
opacity: 0;
}
.project-lightbox__image,
.project-lightbox__video {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
display: block;
opacity: 1;
}