:root { --duration: 0.4s; } .rowAccordion { position: relative; overflow-anchor: none; /* padding: 0 16.25rem; */ width: 100%; height: calc(100vh / var(--zoom-compensation, 1)); } .rowAccordionBgContainer { position: absolute; inset: 0; z-index: 0; background-color: #0a0a0a; } .rowAccordionBgLayer { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity; } .rowAccordion .headerRow, .rowAccordion .contentRow { position: relative; z-index: 1; width: 80%; margin: 0 auto; } .rowAccordion { .headerRow { width: 100%; height: 15.625rem; display: flex; align-items: center; justify-content: center; .title { font-weight: 700; font-size: 2.5rem; color: #FFFFFF; line-height: 3.125rem; } } .contentRow { height: 100%; display: flex; color: #fff; .contentItem { flex: 1; transition: flex var(--duration) ease, padding-bottom var(--duration) ease; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 6.25rem; padding-bottom: 6.25rem; border-left: .0625rem solid #fff; &:last-child { border-right: .0625rem solid #fff; } .contentItemContainer { padding: 0 1.25rem; min-height: 6.25rem; display: flex; flex-direction: column; justify-content: center; margin-left: -0.1875rem; transition: all var(--duration) ease-in-out; position: relative; &::before { content: ''; position: absolute; left: 0; top: 0; width: .3125rem; height: 6.25rem; background: #14355C; } } .contentItemTitle { height: 6.25rem; font-weight: 500; font-size: 1.5rem; color: #FFFFFF; transition: all var(--duration) ease-in-out; margin-bottom: .375rem; display: flex; align-items: center; white-space: nowrap; } .contentItemSubtitle { font-size: 1.25rem; transition: font-size var(--duration) ease-in-out; } .contentItemContentWrapper { box-sizing: border-box; height: 0; opacity: 0; transition: all var(--duration) ease-in-out; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; /* padding: 3.75rem 0; */ margin-top: 1.25rem; } .contentItemContent { font-size: 1rem; /* margin-top: 2.5rem; */ } .contentItemLinks { font-weight: 700; font-size: 1rem; color: #FFFFFF; line-height: 1.875rem; text-decoration-line: underline; display: flex; flex-direction: row; flex-wrap: wrap; gap: 1.875rem 1.25rem; } } .contentItem.active { flex: 2; padding-bottom: 12.5rem; .contentItemContainer { padding: 0 2.5rem; } .contentItemTitle { font-size: 2.5rem; } .contentItemSubtitle { font-size: 1.5rem; } .contentItemContentWrapper { height: 18.75rem; opacity: 1; } } } }