.bloc-onglets-coiffure-galerie {
width: 100%;
} .bloc-onglets-coiffure-galerie__nav {
margin-bottom: var(--ocg-nav-mb, var(--wp--preset--spacing--3));
}
.bloc-onglets-coiffure-galerie__nav .galerie-liens__item {
font: inherit;
text-align: center;
background: none;
border: none;
padding: 0;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
.bloc-onglets-coiffure-galerie__nav .galerie-liens__label {
font-size: var(--ocg-label-fs, var(--gl-text-fs, 0.9rem));
text-transform: var(--ocg-label-transform, none);
}
.bloc-onglets-coiffure-galerie__tab.is-active .galerie-liens__label {
color: var(--wp--preset--color--default);
}
.bloc-onglets-coiffure-galerie__tab.is-active .galerie-liens__img-wrap {
box-shadow: 0 0 0 2px var(--wp--preset--color--default);
} .bloc-onglets-coiffure-galerie__panels {
position: relative;
}
.bloc-onglets-coiffure-galerie__panel {
display: none;
}
.bloc-onglets-coiffure-galerie__panel.is-active {
display: block;
animation: ocgFadeIn 0.4s ease forwards;
}
@keyframes ocgFadeIn {
from { opacity: 0; transform: translateY(10px); }
to   { opacity: 1; transform: translateY(0); }
} .bloc-onglets-coiffure-galerie__columns {
display: flex;
flex-direction: row;
gap: var(--wp--preset--spacing--5);
align-items: center;
}
.bloc-onglets-coiffure-galerie__col-content {
flex: 0 0 55%;
max-width: 670px;
display: flex;
flex-direction: column;
gap: var(--wp--preset--spacing--1);
}
.bloc-onglets-coiffure-galerie__col-comparator {
flex: 0 0 45%;
max-width: 500px;
} .bloc-onglets-coiffure-galerie__comparator-wrapper {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
cursor: ew-resize;
-webkit-user-select: none;
user-select: none;
}
.bloc-onglets-coiffure-galerie__single-wrapper {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
}
.bloc-onglets-coiffure-galerie__single-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.bloc-onglets-coiffure-galerie__img-before,
.bloc-onglets-coiffure-galerie__img-after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
}
.bloc-onglets-coiffure-galerie__img-after-clip {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
will-change: clip-path;
}
.bloc-onglets-coiffure-galerie__comparator-handle {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
pointer-events: none;
will-change: left;
}
.bloc-onglets-coiffure-galerie__comparator-line {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
transform: translateX(-50%);
background: var(--wp--preset--color--secondary);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.bloc-onglets-coiffure-galerie__comparator-knob {
position: relative;
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 44px;
border-radius: 50%;
background: var(--wp--preset--color--secondary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
color: var(--wp--preset--color--default);
}
.bloc-onglets-coiffure-galerie__comparator-knob svg {
display: block;
}
.bloc-onglets-coiffure-galerie__labels {
display: flex;
justify-content: space-between;
margin-top: var(--wp--preset--spacing--1);
}
.bloc-onglets-coiffure-galerie__label-before,
.bloc-onglets-coiffure-galerie__label-after {
font-size: var(--wp--preset--font-size--1);
font-weight: 700;
letter-spacing: 0.1em;
color: var(--wp--preset--color--default);
} .bloc-onglets-coiffure-galerie__col-content h3 {
font-weight: 700;
margin: 0;
text-transform: uppercase;
}
.bloc-onglets-coiffure-galerie__content-text p:first-child {
margin-top: 0;
}
.bloc-onglets-coiffure-galerie__content-text p:last-child {
margin-bottom: 0;
}
.bloc-onglets-coiffure-galerie__col-content .wp-block-buttons {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--wp--preset--spacing--1);
margin-top: var(--wp--preset--spacing--1);
} @media (max-width: 1024px) {
.bloc-onglets-coiffure-galerie__columns {
gap: var(--wp--preset--spacing--3);
}
}
@media (max-width: 768px) {
.bloc-onglets-coiffure-galerie__nav {
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-gutter: stable both-edges;
padding-bottom: 20px; }
.bloc-onglets-coiffure-galerie__nav .galerie-liens__gallery {
display: flex;
flex-wrap: nowrap;
width: max-content;
padding-top: 3px;
padding-left: 3px;
padding-right: 3px;
}
.bloc-onglets-coiffure-galerie__nav .galerie-liens__item {
flex: 0 0 auto;
} .bloc-onglets-coiffure-galerie__nav {
scrollbar-width: auto;
scrollbar-color: var(--wp--preset--color--primary) rgba(0, 0, 0, 0.15);
} .bloc-onglets-coiffure-galerie__nav::-webkit-scrollbar {
height: 10px;
}
.bloc-onglets-coiffure-galerie__nav::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.12);
border-radius: 9999px;
}
.bloc-onglets-coiffure-galerie__nav::-webkit-scrollbar-thumb {
background: var(--wp--preset--color--primary);
border-radius: 9999px;
}
.bloc-onglets-coiffure-galerie__nav::-webkit-scrollbar-thumb:hover {
background: var(--wp--preset--color--secondary);
}
.bloc-onglets-coiffure-galerie__columns {
flex-direction: column;
}
.bloc-onglets-coiffure-galerie__col-content,
.bloc-onglets-coiffure-galerie__col-comparator {
width: 100%;
flex: 0 0 100%;
max-width: 100%;
}
.bloc-onglets-coiffure-galerie__comparator {
max-width: 320px;
margin: 0 auto;
}
} .bloc-onglets-coiffure-galerie.is-editor .bloc-onglets-coiffure-galerie__nav {
margin-bottom: var(--wp--preset--spacing--2);
}
.bloc-onglets-coiffure-galerie.is-editor .bloc-onglets-coiffure-galerie__panel {
display: block;
animation: none;
}
.bloc-onglets-coiffure-galerie.is-editor .bloc-onglets-coiffure-galerie__editor-tab-title {
font-weight: 700;
margin: 24px 0 12px;
padding: 8px 12px;
background: rgba(0, 0, 0, 0.04);
}