/* Lightbox */

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	width: 100vw;
	height: 100vh;
    background: var(--lightbox-bg-color);
}
.lightbox .prevres {
    position: fixed;
    z-index: 1000;
    bottom: 50%;
    width: 10rem;
    height: 15vh;
    text-decoration: none;
    font-size: 8rem;
}
.lightbox .nextres {
    position: fixed;
    z-index: 1000;
    bottom: 50%;
    right: 0;
    width: 10rem;
    height: 15vh;
    text-decoration: none;
    text-align: right;
    font-size: 8rem;
}
.lightbox_overlay {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    background: var(--overlay-bg-color);
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    width: fit-content;
    min-width: 300px;
}
.lightbox_overlay *:not(a):not(time) {
    color: var(--overlay-text-color);
}
.lightbox_overlay p {
}
.lightbox img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 20vh;
    margin: auto;
    max-width: 100%;
    max-height: 80vh;
}
.lightbox:target {
    outline: none;
    display: block !important;
}
.entry_list .imgshortcode {
    display: none;
}
body:has(.lightbox:target) {
    overflow: hidden;
}

.lightbox_overlay .iconbar svg {
    fill: var(--main-color);
    height: 24px; /* Adjust these values to get the desired size */
    width: 24px;
}

.lightbox_overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox_overlay .iconbar {
    border: 1px var(--main-color) solid;
    width: fit-content;
    border-radius: 5px; /* Rounded corners */
}
.lightbox_overlay .iconbar > * {
    display: block;
    text-align: center;
}

.lightbox_overlay .iconbar a {
    text-decoration: none;
    display: inline-block;
    padding: 10px;
}

.lightbox_overlay .iconbar a:hover {
    background-color: var(--container-color);
}
