.fullscreen-img-module,
.fullscreen-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fullscreen-img {
    --fullscreen-img-object-position: center center;
    --fullscreen-img-overlay-opacity: 0.35;

    position: relative;
    display: flex;
    width: 100%;
    min-height: min(900px, 100vh);
    overflow: hidden;
    color: var(--color-white);
}

.fullscreen-img-media,
.fullscreen-img-overlay {
    position: absolute;
    inset: 0;
}

.fullscreen-img-media {
    z-index: 0;
    overflow: hidden;
}

.fullscreen-img-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: var(--fullscreen-img-object-position);
}

.fullscreen-img-overlay {
    z-index: 1;
    background-color: rgba(
        0,
        0,
        0,
        var(--fullscreen-img-overlay-opacity)
    );
    pointer-events: none;
}

.fullscreen-img-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 90%;
    min-height: inherit;
    margin-inline: auto;
    padding-block: var(--space-xl);
    box-sizing: border-box;
}

.fullscreen-img-content-inner {
    width: min(100%, 760px);
}

.fullscreen-img-content-inner,
.fullscreen-img-content-inner a {
    color: inherit;
}

.fullscreen-img-content-inner > :first-child {
    margin-top: 0;
}

.fullscreen-img-content-inner > :last-child {
    margin-bottom: 0;
}

.fullscreen-img-text-pos-top-left .fullscreen-img-content,
.fullscreen-img-text-pos-top-center .fullscreen-img-content,
.fullscreen-img-text-pos-top-right .fullscreen-img-content {
    align-items: flex-start;
}

.fullscreen-img-text-pos-center-left .fullscreen-img-content,
.fullscreen-img-text-pos-center .fullscreen-img-content,
.fullscreen-img-text-pos-center-right .fullscreen-img-content {
    align-items: center;
}

.fullscreen-img-text-pos-bottom-left .fullscreen-img-content,
.fullscreen-img-text-pos-bottom-center .fullscreen-img-content,
.fullscreen-img-text-pos-bottom-right .fullscreen-img-content {
    align-items: flex-end;
}

.fullscreen-img-text-pos-top-left .fullscreen-img-content,
.fullscreen-img-text-pos-center-left .fullscreen-img-content,
.fullscreen-img-text-pos-bottom-left .fullscreen-img-content {
    justify-content: flex-start;
    text-align: left;
}

.fullscreen-img-text-pos-top-center .fullscreen-img-content,
.fullscreen-img-text-pos-center .fullscreen-img-content,
.fullscreen-img-text-pos-bottom-center .fullscreen-img-content {
    justify-content: center;
    text-align: center;
}

.fullscreen-img-text-pos-top-right .fullscreen-img-content,
.fullscreen-img-text-pos-center-right .fullscreen-img-content,
.fullscreen-img-text-pos-bottom-right .fullscreen-img-content {
    justify-content: flex-end;
    text-align: right;
}

.fullscreen-img-image-pos-top-left {
    --fullscreen-img-object-position: left top;
}

.fullscreen-img-image-pos-top-center {
    --fullscreen-img-object-position: center top;
}

.fullscreen-img-image-pos-top-right {
    --fullscreen-img-object-position: right top;
}

.fullscreen-img-image-pos-center-left {
    --fullscreen-img-object-position: left center;
}

.fullscreen-img-image-pos-center {
    --fullscreen-img-object-position: center center;
}

.fullscreen-img-image-pos-center-right {
    --fullscreen-img-object-position: right center;
}

.fullscreen-img-image-pos-bottom-left {
    --fullscreen-img-object-position: left bottom;
}

.fullscreen-img-image-pos-bottom-center {
    --fullscreen-img-object-position: center bottom;
}

.fullscreen-img-image-pos-bottom-right {
    --fullscreen-img-object-position: right bottom;
}

.fullscreen-img-overlay-none {
    --fullscreen-img-overlay-opacity: 0;
}

.fullscreen-img-overlay-light {
    --fullscreen-img-overlay-opacity: 0.15;
}

.fullscreen-img-overlay-medium {
    --fullscreen-img-overlay-opacity: 0.35;
}

.fullscreen-img-overlay-dark {
    --fullscreen-img-overlay-opacity: 0.6;
}

@media (max-width: 767px) {
    .fullscreen-img {
        min-height: min(760px, 100svh);
    }

    .fullscreen-img-content {
        width: calc(100% - 40px);
        padding-block: var(--space-l);
    }
}