:root {
--gallery-gap:     16px;
--gallery-radius:  var(--radius-sm);
} .rault-gallery {
width: 100%;
max-width: none;
margin: 0;
padding: 0;
} .rault-gallery__filters {
margin-bottom: 28px;
padding: 8px 0 12px;
}
.rault-gallery__filters-inner {
display: flex;
flex-wrap: wrap;
gap: 10px;
} .rault-gallery__filter {
position: relative;
isolation: isolate;
overflow: hidden;
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 500;
letter-spacing: 0.01em;
color: var(--color-accent);
background-color: transparent;
border: 2px solid var(--color-accent);
border-radius: var(--radius-pill);
padding: 10px 22px;
cursor: pointer;
white-space: nowrap;
-webkit-tap-highlight-color: transparent;
-webkit-appearance: none;
appearance: none;
transition: box-shadow 0.3s ease, transform 0.25s var(--anim-ease-out),
border-color 0.3s ease, color 0.3s ease;
animation: rault-filter-in 0.5s var(--anim-ease-out) backwards;
} .rault-gallery__filter::before {
content: '';
position: absolute;
inset: -2px;
z-index: -1;
background: var(--color-accent);
border-radius: inherit;
transform: scaleX(0);
transform-origin: left center;
transition: transform 0.45s var(--anim-ease-out);
}
.rault-gallery__filter > span {
position: relative;
z-index: 1;
}
.rault-gallery__filter-count {
opacity: 0.7;
font-size: 0.8em;
margin-left: 7px;
font-variant-numeric: tabular-nums;
} .rault-gallery__filter:hover,
.rault-gallery__filter:focus-visible,
.rault-gallery__filter.is-active {
color: #fff;
}
.rault-gallery__filter:hover,
.rault-gallery__filter:focus-visible {
box-shadow: 0 6px 18px rgba(232, 73, 51, 0.25);
transform: translateY(-2px);
}
.rault-gallery__filter:hover::before,
.rault-gallery__filter:focus-visible::before,
.rault-gallery__filter.is-active::before {
transform: scaleX(1);
}
.rault-gallery__filter:active { transform: scale(0.96); }
.rault-gallery__filter:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 3px;
} .rault-gallery__filter.is-active {
box-shadow: 0 0 0 2px #fff,
0 0 0 4px var(--color-accent);
}
@keyframes rault-filter-in {
from { opacity: 0; transform: translateY(10px) scale(0.94); }
to   { opacity: 1; transform: none; }
} .rault-gallery__filter:nth-child(1)  { animation-delay: 0.03s; }
.rault-gallery__filter:nth-child(2)  { animation-delay: 0.06s; }
.rault-gallery__filter:nth-child(3)  { animation-delay: 0.09s; }
.rault-gallery__filter:nth-child(4)  { animation-delay: 0.12s; }
.rault-gallery__filter:nth-child(5)  { animation-delay: 0.15s; }
.rault-gallery__filter:nth-child(6)  { animation-delay: 0.18s; }
.rault-gallery__filter:nth-child(7)  { animation-delay: 0.21s; }
.rault-gallery__filter:nth-child(8)  { animation-delay: 0.24s; }
.rault-gallery__filter:nth-child(9)  { animation-delay: 0.27s; }
.rault-gallery__filter:nth-child(10) { animation-delay: 0.30s; }
.rault-gallery__filter:nth-child(11) { animation-delay: 0.33s; }
.rault-gallery__filter:nth-child(12) { animation-delay: 0.36s; } .rault-gallery__grid {
display: flex;
align-items: flex-start;
gap: var(--gallery-gap);
}
.rault-gallery__col {
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: var(--gallery-gap);
}
.rault-gallery__sentinel {
height: 1px;
width: 100%;
} .rault-gallery__item {
display: block;
width: 100%;
position: relative;
overflow: hidden;
border-radius: var(--gallery-radius);
background: var(--color-bg-light);
cursor: pointer;
border: none;
padding: 0;
-webkit-appearance: none;
appearance: none;
animation: rault-gallery-in 0.45s var(--anim-ease-out) both;
animation-delay: calc(var(--i, 0) * 40ms);
}
.rault-gallery__item img {
width: 100%;
height: auto;
display: block;
opacity: 0;
transition: opacity 0.4s ease, transform 0.7s var(--anim-ease-out);
}
.rault-gallery__item img.is-loaded { opacity: 1; }
.rault-gallery__item:hover img,
.rault-gallery__item:focus-visible img {
transform: scale(1.05);
}
.rault-gallery__item::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(15, 52, 53, 0.78) 0%, rgba(15, 52, 53, 0) 50%);
opacity: 0;
transition: opacity 0.4s var(--anim-ease-out);
pointer-events: none;
}
.rault-gallery__item:hover::after,
.rault-gallery__item:focus-visible::after {
opacity: 1;
}
.rault-gallery__caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
padding: 18px 20px;
font-family: var(--font-display);
font-size: 1.05rem;
font-weight: 600;
line-height: 1.25;
color: #fff;
text-align: left;
transform: translateY(8px);
opacity: 0;
transition: transform 0.4s var(--anim-ease-out), opacity 0.4s var(--anim-ease-out);
pointer-events: none;
}
.rault-gallery__item:hover .rault-gallery__caption,
.rault-gallery__item:focus-visible .rault-gallery__caption {
transform: translateY(0);
opacity: 1;
}
.rault-gallery__item:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 3px;
}
@keyframes rault-gallery-in {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
} .rault-gallery__skeleton {
width: 100%;
height: 240px;
border-radius: var(--gallery-radius);
background: linear-gradient(100deg,
var(--color-bg-light) 30%,
var(--color-primary-light) 50%,
var(--color-bg-light) 70%);
background-size: 200% 100%;
animation: rault-gallery-shimmer 1.4s ease-in-out infinite;
}
.rault-gallery__skeleton:nth-child(3n)   { height: 320px; }
.rault-gallery__skeleton:nth-child(4n+1) { height: 200px; }
@keyframes rault-gallery-shimmer {
from { background-position: 200% 0; }
to   { background-position: -200% 0; }
}
html body .rault-gallery__empty {
text-align: center;
color: var(--color-muted);
font-size: 1rem;
padding: 60px 0;
} .rault-lightbox {
position: fixed;
inset: 0;
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(10, 37, 38, 0.95);
padding: 5vh 4vw;
opacity: 0;
transition: opacity 0.3s ease;
}
.rault-lightbox.is-open { opacity: 1; }
.rault-lightbox[hidden] { display: none; }
.rault-lightbox__figure {
margin: 0;
max-width: 100%;
max-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.rault-lightbox__img {
max-width: 100%;
max-height: 82vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: var(--gallery-radius);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.rault-lightbox__caption {
font-family: var(--font-display);
font-size: 1.1rem;
font-weight: 500;
color: #fff;
text-align: center;
}
.rault-lightbox__caption:empty { display: none; }
.rault-lightbox__close,
.rault-lightbox__nav {
position: absolute;
background: rgba(255, 255, 255, 0.1);
border: none;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background 0.2s ease;
-webkit-appearance: none;
appearance: none;
}
.rault-lightbox__close:hover,
.rault-lightbox__nav:hover {
background: var(--color-accent);
}
.rault-lightbox__close {
top: 20px;
right: 24px;
width: 44px;
height: 44px;
font-size: 28px;
line-height: 1;
}
.rault-lightbox__nav {
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 52px;
font-size: 32px;
line-height: 1;
}
.rault-lightbox__nav--prev { left: 24px; }
.rault-lightbox__nav--next { right: 24px; }
.rault-lightbox__close:focus-visible,
.rault-lightbox__nav:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
} @media (max-width: 767px) {
:root { --gallery-gap: 10px; }
.rault-gallery__filters-inner { gap: 8px; }
.rault-gallery__filter {
font-size: 0.82rem;
padding: 8px 16px;
}
.rault-gallery__caption { font-size: 0.9rem; padding: 12px 14px; }
.rault-lightbox__nav {
width: 44px;
height: 44px;
font-size: 26px;
}
.rault-lightbox__nav--prev { left: 10px; }
.rault-lightbox__nav--next { right: 10px; }
.rault-lightbox__close { top: 12px; right: 14px; }
} @media (prefers-reduced-motion: reduce) {
.rault-gallery__item,
.rault-gallery__item img,
.rault-gallery__caption,
.rault-gallery__item::after,
.rault-gallery__filter,
.rault-gallery__filter::before,
.rault-lightbox,
.rault-gallery__skeleton {
animation: none !important;
transition: none !important;
}
.rault-gallery__item img { opacity: 1 !important; }
.rault-gallery__filter:hover,
.rault-gallery__item:hover .rault-gallery__caption,
.rault-gallery__item:hover img {
transform: none;
}
}