File: /var/www/quadcode-jobs/resources/sass/components/_gallery.scss
.gallery {
padding-top: 2px;
--gallery-cols: repeat(4, 1fr);
@include breakpoint-down('lg') {
--gallery-cols: repeat(3, 1fr);
padding-top: 35px;
}
@include breakpoint-down('sm') {
--gallery-cols: 1fr 1fr;
}
&__inner {
width: 100%;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
position: relative;
gap: 0;
@include breakpoint-down('sm') {
justify-content: center;
left: 0;
width: 100%;
}
}
&__item {
width: calc((100% - 30px * 2) / 3);
height: 205px;
border-radius: 10px;
overflow: hidden;
margin-top: 30px;
margin-right: 30px;
@include breakpoint-up('sm') {
&:nth-child(3n + 3) {
margin-right: 0;
}
}
@include breakpoint-down('lg') {
margin-right: 10px;
margin-top: 10px;
width: calc((100% - 10px * 2) / 3);
height: 155px;
}
@include breakpoint-down('sm') {
width: calc((100% - 20px) / 2);
height: 150px;
margin-right: 20px;
margin-top: 20px;
&:nth-child(2n + 2) {
margin-right: 0;
}
}
img {
height: 100%;
width: 100%;
object-fit: cover;
}
}
}
.gallery-modal {
--input-border-radius: 0.5rem;
position: fixed;
top: 0;
left: 0;
width: 100%;
max-width: 100%;
height: 100%;
max-height: 100%;
padding: 30px 0;
overflow-y: auto;
z-index: 49;
display: none;
background-color: #132c3f81;
&.is-active {
display: flex;
}
&__slider {
width: 100%;
height: 462px;
}
&__slide {
position: relative;
width: 100%;
height: 462px;
img {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
object-fit: cover;
}
.slider-location__play {
display: none;
}
iframe {
width: 100%;
height: 100%;
}
}
&__inner {
position: relative;
margin: auto;
}
&__content {
margin: auto;
min-height: 300px;
min-width: 300px;
max-width: calc(100% - 20rem);
img {
max-height: calc(100vh - 20rem);
}
}
&__close {
position: absolute;
top: 0;
right: 0;
background-color: #F1162F;
width: 5.5rem;
height: 5.5rem;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
&__counter {
position: absolute;
bottom: -30px;
left: 0;
right: 0;
margin: auto;
text-align: center;
font-size: 20px;
font-weight: 300;
color: #FFFFFF;
pointer-events: none;
}
.as-next-btn {
@include breakpoint-down('sm') {
display: block;
top: calc(50% - 22px);
right: 0;
}
}
.as-prev-btn {
@include breakpoint-down('sm') {
display: block;
top: calc(50% - 22px);
left: 0;
}
}
}