/*  UTILITIES: LAYOUT
//////////////////////////////////////////////////////////////////////////////*/

.visuallyhidden:not(:focus):not(:active),
.invisible:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.hidden,
[hidden] {
    display: none !important;
}

.nowrap {
    white-space: nowrap;
}

/*  BLOCK ////////////////////////////////////////////////////////////////////*/

.display-block {
    display: block;
}

/*  FLEX /////////////////////////////////////////////////////////////////////*/

.flex,
.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-grid-gap);
}
.is-content-justification-space-between {
    justify-content: space-between;
}
.is-content-justification-right {
    justify-content: end;
}
.is-content-justification-center {
    justify-content: center;
}
.flex-column {
    flex-direction: column;
}
.space-between {
    justify-content: space-between;
}

/*  GRID /////////////////////////////////////////////////////////////////////*/

.columns,
.is-layout-grid,
.is-grid {
    display: grid;
    gap: var(--size-grid-gap) !important;
}

.columns--2 {
    grid-template-columns: 1fr 1fr;
}
.columns--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.columns--4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 640px) {
    .columns--2 {
        grid-template-columns: 100%;
    }
    .columns--3 {
        grid-template-columns: 100%;
    }

    .columns--4 {
        grid-template-columns: 100%;
    }
}

/*  FULLBLEED ////////////////////////////////////////////////////////////////*/

.fullbleed {
    position: relative;
    z-index: 1;
}
.fullbleed::before,
.fullbleed::after {
    content: "";
    position: absolute;
    width: 50vw;
    top: 0;
    bottom: 0;
    background-color: inherit;
    color: inherit;
    z-index: -1;
}

.fullbleed::before {
    left: -50vw;
}

.fullbleed::after {
    right: -50vw;
}
