mirror of
https://gitlab.com/vyla-entertainment/home-frontend.git
synced 2026-11-13 08:07:18 -05:00
95 lines
1.9 KiB
CSS
95 lines
1.9 KiB
CSS
.features-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: clamp(3.5rem, 8vw, 6rem);
|
|
width: 60%;
|
|
}
|
|
|
|
.feature-block {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
align-items: center;
|
|
gap: clamp(2rem, 6vw, 5rem);
|
|
}
|
|
|
|
.feature-block-reverse {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.feature-block-reverse .feature-media {
|
|
order: 2;
|
|
}
|
|
|
|
.feature-block-reverse .feature-copy {
|
|
order: 1;
|
|
}
|
|
|
|
.feature-media {
|
|
width: min(100%, 800px);
|
|
aspect-ratio: 16 / 9;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-card);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.feature-media img,
|
|
.feature-media video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
display: block;
|
|
}
|
|
|
|
.feature-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
text-align: left;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.feature-title {
|
|
text-align: left;
|
|
color: var(--color-fg);
|
|
font-weight: 400;
|
|
font-size: clamp(1.75rem, 3vw, 2.25rem);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.feature-copy .section-subtitle {
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.features-container {
|
|
width: 90%;
|
|
}
|
|
|
|
.feature-media {
|
|
width: 100% !important;
|
|
aspect-ratio: 4 / 3;
|
|
max-height: 420px !important;
|
|
height: 200px !important;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-card);
|
|
overflow: hidden;
|
|
mask-composite: intersect;
|
|
mask-image: linear-gradient(to top, transparent, black 50%), linear-gradient(to top, transparent, black 20%);
|
|
mask-repeat: no-repeat;
|
|
mask-size: 100% 100%;
|
|
}
|
|
|
|
.feature-block,
|
|
.feature-block-reverse {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.feature-block-reverse .feature-media,
|
|
.feature-block-reverse .feature-copy {
|
|
order: initial;
|
|
}
|
|
} |