.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;
}

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

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

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

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

.link-avatar-rounded {
    border-radius: .3rem;
}

.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: 45px;
    max-height: 45px;
    position: absolute;
    top: 50%;
    margin-top: -22.5px;
    margin-left: -4.1rem;
}

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

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

.link-big-btn-image-wrapper {
    overflow: hidden;
    width: 15%;
    height: auto;
    max-height: calc(100% - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

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

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

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


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

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

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

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

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

.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-image {
    width: 100%;
    height: auto;
    max-height: 10rem;
    object-fit: cover;
}

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

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

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

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

/* 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%;
    min-width: 45px;
    min-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;
}

/* 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: .3rem;
}

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

/* smaller rounded buttons for some links */
[data-biolink-block-type="review"] .link-btn-round,
[data-biolink-block-type="paragraph"] .link-btn-round,
[data-biolink-block-type="business_hours"] .link-btn-round {
    border-radius: 25px;
}

/* 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;
}
