/* Fixes for theme */

.singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title {
    width: auto;
}


rns-gallery {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
    user-select: none;
    top: 0;
    left: 0;
    /* This absurdly high z-index is one more than the z-index set by the video ad, which blocks the caption on mobile*/
    z-index: 100000;
    font-family: var(--sans);
}

.rns-gallery-slide-progress-bar {
    position: absolute;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.25rem;
    display: flex;
    z-index: 100001;
}

.slide-progress-item {
    flex: 1 1 100%;
    height: 0.2rem;
    background: #fff;
    border-radius: 0.125rem;
    margin: 0 0.125rem;
    opacity: 0.5;
}

.active-slide-progress-item {
    opacity: 0.9;
}

.slide-progress-item:first-child {
    margin: 0 0.125rem 0 0;
}

.slide-progress-item:last-child {
    margin: 0 0 0 0.125rem;
}

.gallery-slides {
    width: 100%;
    height: 100%;
}

.rns-gallery-x {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
}

.rns-gallery-arrow, .rns-gallery-x {
    position: absolute;
    cursor: pointer;
    z-index: 100001;
    display: flex;
}

.rns-gallery-arrow .rns-gallery-arrow-img, .rns-gallery-x .rns-gallery-x-button-img {
    width: 1.5rem;
    height: 1.5rem;
    fill: #fff;
    opacity: 0.6;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.rns-gallery-arrow .rns-gallery-arrow-img:hover, .rns-gallery-x .rns-gallery-x-button-img:hover {
    opacity: 1;
}

.rns-gallery-arrow {
    padding: 2rem 0.5rem;
}

.rns-gallery-forward {
    right: 0;
}

.rns-gallery-back {
    left: 0;
}

rns-gallery-slide {
    width: 100%;
    height: 100%;
}

.rns-gallery-ad-slide {
    justify-content: center;
    align-items: center;
    background: #000;
    flex-direction: column;
    color: #fff;
    font-size: 0.9rem;
}

.rns-gallery-ad-slide .rns-gallery-ad-wrapper {
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rns-gallery-ad-slide .rns-gallery-ad-text {
    margin-top: 0.5rem;
}

.rns-gallery-ad-slide .rns-gallery-ad {
    background: #fff;
}


#wpadminbar {
    z-index: 100002;
}

.logo-link {
    display: none;
}

.rns-photo-gallery-preview {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: calc(9/16 * 100%);
    position: relative;
    font-family: var(--sans);
    user-select: none;
}

.rns-photo-gallery-preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.rns-photo-gallery-preview-title-card {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 4rem;
    box-sizing: border-box;
    flex-direction: column;
    text-align: center;
}

.rns-gallery-preview-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 1.5rem 0;
}

.rns-gallery-preview-author-date {
    font-size: 1rem;
}

.rns-photo-gallery-preview .rns-gallery-forward {
    top: 50%;
    transform: translate(0, -50%);
}

@media screen and (max-width: 768px) {
    .rns-gallery-arrow .rns-gallery-arrow-img {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    .rns-photo-gallery-preview {
        padding-top: calc(16/9 * 100%);
    }
}