.link-html {
    height: 100%;
}

.link-body {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100%;
}

.link-video-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.link-body-backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
}

.link-info {
    position: fixed;
    z-index: 1;
    bottom: 1rem;
    left: 1rem;
}

.link-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 30px;
    min-height: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: #0003;
    color: white;
}

.link-info a:hover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.link-content {
    padding-top: 2rem;
}

.link-image {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.link-verified {
    border: 2px solid #fff;
    border-radius: 50rem;
    padding: 0.35rem 0.55rem;
    background: #0086ff;
    color: #fff;
    font-weight: bold;
}

.link-verified-small {
    color: #0086ff;
    vertical-align: text-top;
}

.link-verified-small .fa-stack {
    font-size: .80rem;
}

.link-btn {
    position: relative;
    white-space: normal;
    word-wrap: break-word;
    padding: 1rem 4.5rem;
    font-size: 1.1rem;
    transition: opacity 0.3s, background 0.3s;
    border-radius: 0;
}

.link-btn:hover {
    animation: none;
}

.link-btn-straight {
    border-radius: 0;
    overflow: hidden;
}

.link-btn-round {
    border-radius: 50px;
    overflow: hidden;
}

.link-btn-round.large, .link-avatar-round.large {
    border-radius: 25px;
    overflow: hidden;
}

.link-btn-rounded {
    border-radius: .4rem;
    overflow: hidden;
}

.link-avatar-straight {
    border-radius: 0;
    overflow: hidden;
}

.link-avatar-round {
    border-radius: 50rem;
    overflow: hidden;
}

.link-avatar-rounded {
    border-radius: .4rem;
    overflow: hidden;
}

.link-hover-animation-smooth {
    transition: transform 0.3s;
}

.link-hover-animation-smooth:hover, .link-hover-animation-instant:hover {
    transform: scale(1.025);
}

.link-hover-animation-smooth:active, .link-hover-animation-instant:active {
    transform: scale(.975);
}

.link-btn-image-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    margin-left: -4.1rem;
}

[data-biolink-block-type] .link-btn-image-wrapper.link-btn-round {
    margin-left: -3.9rem;
}

[dir="rtl"] .link-btn-image-wrapper {
    margin-left: initial;
    margin-right: -4.1rem;
}

/* featured link */
.link-featured-name {
    font-size: 1.1rem;
}

.link-featured-image-wrapper {
    min-height: 5rem;
}

.link-featured-image {
    object-fit: cover;
    max-height: 20rem;
}

/* Big link */
.link-big-btn {
    padding: 1rem;
}

.link-big-btn-image-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 66px;
    max-height: 66px;
    position: absolute;
    top: 50%;
    margin-top: -34px;
    margin-left: 0;
}

.link-big-btn-image {
    width: 100%;
    height: auto;
}

.link-big-content-wrapper {
    margin-left: 66px;
    width: 70%;
    padding: 0 1rem;
}

.link-big-icon-wrapper {
    width: 15%;
}


.link-grid-image-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.link-grid-image-wrapper-columns-2 {
    height: 13rem;
}

.link-grid-image-wrapper-columns-3 {
    height: 8rem;
}

@media (min-width: 992px) {
    .link-grid-image-wrapper-columns-2 {
        height: 18rem;
    }

    .link-grid-image-wrapper-columns-3 {
        height: 11rem;
    }
}

.link-grid-image-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .25rem 1rem;
}

.link-grid-image-overlay-text {
    color: white;
    text-shadow: 1px 1px 3px #00000038;
    width: 100%;
    font-weight: bold;
}

.link-btn-image {
    width: 100%;
    height: auto;
}

.link-external-item-click-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.link-external-item-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 30rem;
}

@media (min-width: 768px) {
    .link-external-item-image {
        max-height: 10rem;
    }
}

.link-iframe-round {
    border-radius: .4rem;
    overflow:hidden;
    position:relative;
}

.link-iframe-child-round iframe {
    border-radius: .4rem;
}

.link-round {
    border-radius: .4rem;
}

#links > .row > div:target {
    transform: scale(1.05);
}

.link-socials-button-wrapper {
    aspect-ratio: 1 / 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.link-socials-button-wrapper a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Review */
.link-review-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50rem;
    object-fit: cover;
    background: hsla(0, 0%, 0%, .1);
    color: hsla(0, 0%, 0%, 1);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image slider */
.link-image-slider-image {
    object-fit: cover;
}

/* Faq block */
.link-faq button {
    font-size: 1.1rem;
}

/* Footer */
.link-footer {
    margin: 3rem 0;
}

.link-footer-branding {
    font-size: .9rem;
}

/* Modals */
.modal-header {
    padding: 1rem;
    border-bottom: 0;
}

.modal-subheader {
    padding: 0 1rem;
    border-bottom: 0;
    margin: 0;
}

.modal-content {
    padding: 1rem;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Other default overrides */
form .btn-primary {
    transition: all .3s ease-in-out;
}

form .btn-primary, form .btn-primary:hover, form .btn-primary:focus, form .btn-primary:active {
    background: black !important;
    border-color: black !important;
    box-shadow: none !important;
}

form .btn-primary:hover, form .btn-primary:focus {
    opacity: .85;
}

form .btn-primary:active {
    opacity: .75;
}

.btn:focus, .btn:active {
    box-shadow: none !important;
}

/* Modal changes */
.modal-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

/* Share button */
.share-button-wrapper {
    z-index: 2;
    top: 1rem;
    right: 1rem;
}

.share-button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: #0003;
    color: white;
}

.share-button:hover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.branded-button-icon {
    width: 20px;
    height: 20px;
}

/* Preview highlight */
[data-biolink-block-id] {
    transition: .3s all;
    border: 2px solid transparent;
}

[data-biolink-block-id].preview-highlight {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    border-radius: .4rem;
}

/* Header block */
.link-header-avatar {
    position: absolute;
}

/* Blocks with cards instead of buttons to have a bit less round edges */
.card.link-btn-round, .card.link-btn-round img {
    border-radius: 25px;
    overflow: hidden;
}

/* paragraph no margin on last one */
[data-biolink-block-type="paragraph"] p:last-child {
    margin-bottom: 0;
}

/* Business hours */
.link-business-hours-icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50rem;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .2;
}

/* Quill editor */
.ql-content p {
    margin-bottom: 0 !important;
}
