.expertise-hero {
position: relative;
width: 100%;
min-height: clamp(22rem, 65vh, 42rem);
overflow: hidden;
background: var(--wp--preset--color--custom-default);
}
.expertise-hero__main {
position: relative;
height: clamp(22rem, 65vh, 42rem);
}
.expertise-hero__main::after {
content: '';
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.15) 0%,
rgba(0, 0, 0, 0.35) 45%,
rgba(0, 0, 0, 0.55) 100%
);
pointer-events: none;
}
.expertise-hero__static,
.expertise-hero__static-slide {
height: 100%;
}
.expertise-hero__slide {
position: relative;
margin: 0;
height: 100%;
}
.expertise-hero__image {
display: block;
width: 100%;
height: 100%;
max-width: none;
object-fit: cover;
object-position: center;
}
.expertise-hero__thumbs {
--expertise-hero-cut: clamp(2.5rem, 5vw, 4.5rem);
position: absolute;
right: 0;
bottom: 0;
z-index: 2;
display: flex;
align-items: center;
gap: clamp(1rem, 2vw, 1.75rem);
width: min(34rem, calc(100% - 1.5rem));
padding:
clamp(1.25rem, 2.5vw, 2rem)
clamp(1.25rem, 2.5vw, 2rem)
clamp(1.25rem, 2.5vw, 2rem)
calc(var(--expertise-hero-cut) + clamp(0.75rem, 1.5vw, 1.25rem));
background: var(--wp--preset--color--custom-bg-1, #f7f1eb);
clip-path: polygon(var(--expertise-hero-cut) 0, 100% 0, 100% 100%, 0 100%);
}
.expertise-hero__thumbs-track {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
}
.expertise-hero__thumbs-track .swiper-wrapper {
display: flex;
}
.expertise-hero__thumb {
margin: 0;
height: clamp(4.25rem, 8vw, 5.75rem);
overflow: hidden;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.25s ease;
}
.expertise-hero__thumbs-track .swiper-slide-thumb-active .expertise-hero__thumb {
opacity: 1;
}
.expertise-hero__thumb-img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.expertise-hero__thumb:hover .expertise-hero__thumb-img {
transform: scale(1.08);
}
.expertise-hero__nav-btn {
width: 2.5rem;
height: 2.5rem;
flex-shrink: 0;
padding: 0;
border: 1px solid var(--wp--preset--color--custom-default, #000);
border-radius: 50%;
background:
transparent
url(//architecte-rc.com/wp-content/themes/rc/assets/chart/button-arrow-black.svg) center / 14px 11px no-repeat;
cursor: pointer;
transition: background-color 0.25s ease, opacity 0.25s ease, background-image 0.25s ease, border-color 0.25s ease, background-position 0.25s ease;
}
.expertise-hero__nav-btn--prev {
transform: scaleX(-1);
}
.expertise-hero__nav-btn:hover,
.expertise-hero__nav-btn:focus-visible {
background-color: var(--wp--preset--color--custom-primary);
color: var(--wp--preset--color--custom-white);
background-image: url(//architecte-rc.com/wp-content/themes/rc/assets/chart/button-arrow.svg);
background-position: 70% 50%;
border-color: var(--wp--preset--color--custom-primary);
}
.expertise-hero__nav-btn:focus-visible {
outline: 2px solid var(--wp--preset--color--custom-primary);
outline-offset: 2px;
}
@media (max-width: 768px) {
.expertise-hero,
.expertise-hero__main {
min-height: 70vh;
height: 70vh;
}
.expertise-hero__thumbs {
--expertise-hero-cut: 1.75rem;
width: min(100%, 22rem);
gap: 0.75rem;
padding: 1rem 1rem 1rem calc(var(--expertise-hero-cut) + 0.65rem);
}
.expertise-hero__thumb {
height: 3.5rem;
}
.expertise-hero__nav-btn {
width: 2.15rem;
height: 2.15rem;
background-size: 12px 9px;
}
}