@use '../../source/scss/theme/global/config' as *; @use '../../source/scss/theme/functions/functions' as *; @use '../../source/scss/theme/functions/mixins' as *; .news-babies { overflow: hidden; &__row { align-items: flex-start; padding: clamp(rem-calc(24), 5vw, rem-calc(42)) clamp(rem-calc(16), 4vw, rem-calc(42)); border-radius: rem-calc(12); background-color: $color-white; } &__col { &--babies { @media (max-width: 1023px) { margin-top: rem-calc(40); } } } &__news-grid { display: grid; grid-template-columns: 1fr; gap: rem-calc(24) rem-calc(20); margin-top: rem-calc(8); @media (min-width: 600px) { grid-template-columns: repeat(2, minmax(0, 1fr)); } } &__post { display: flex; flex-direction: column; align-items: flex-start; gap: rem-calc(10); padding: rem-calc(4) 0; } &__post-cat { display: inline-block; padding: rem-calc(4) rem-calc(12); border-radius: rem-calc(7); background-color: rgba($primary, 0.1); color: $primary; margin-bottom: rem-calc(16); font-size: rem-calc(13); font-weight: 600; line-height: 1.3; } &__post-title { margin: 0; font-size: rem-calc(20); width: 96%; a { color: $color-black; text-decoration: none; &:hover, &:focus-visible { color: $primary; text-decoration: underline; } } } &__post-more { margin-top: auto; font-weight: 600; } &__babies-heading { margin: 0 0 rem-calc(16); color: $headings-color; font-family: $headings-font-family; font-weight: $headings-font-weight; font-size: clamp(1.35rem, 2.2vw, rem-calc(26)); } &__babies-slider { width: 100%; min-height: rem-calc(200); @media (max-width: 1023px) { aspect-ratio: 16 / 12; max-height: 50vh; height: auto; } &.swiper { overflow: hidden; } .swiper-slide { height: auto; } &.swiper-fade .swiper-slide { height: 100%; min-height: rem-calc(180); } } &__baby-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: rem-calc(180); overflow: hidden; border-radius: rem-calc(20); } &__baby-card-media { position: relative; flex: 1 1 auto; min-height: rem-calc(180); } &__baby-card-img { @include img-box; position: absolute; inset: 0; margin: 0; figure { height: 100%; } img { width: 100%; height: 100%; object-fit: cover; } } &__baby-card-overlay { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: rem-calc(20) rem-calc(18) rem-calc(22); pointer-events: none; } &__baby-card-name { margin: 0; font-size: clamp(1.15rem, 2vw, rem-calc(22)); font-weight: 700; line-height: 1.25; } &__baby-card--pink &__baby-card-overlay { background: linear-gradient( to top, rgba(255, 182, 193, 0.95) 0%, rgba(255, 182, 193, 0.4) 55%, transparent 100% ); .news-babies__baby-card-name { color: $primary; } } &__baby-card--blue &__baby-card-overlay { background: linear-gradient( to top, rgba(173, 216, 230, 0.95) 0%, rgba(173, 216, 230, 0.4) 55%, transparent 100% ); .news-babies__baby-card-name { color: $secondary; } } }