/* v--- see more button ---v */

#seemore {
	background-color: var(--color-bg-component);
	border: none;
	color: var(--color-text-component);
	font-size: 1.1rem;
	margin: auto;
	padding: 5px 20px 5px 10px;
}

#seemore:hover {
	background-color: var(--color-bg-component-hover);
	color: var(--color-text-component-hover);
}

#seemore i {
	margin-right: .25em;
}

#load-more-trigger {
	width: 100%;
	display: flex;
	padding: 10px;
}
/* ^--- see more button ---^ */


/* v--- lightbox ---v */

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	background-color: rgba(0, 0, 0, 0.85);
	background: linear-gradient(90deg, rgba(0,0,0,0.95) 5%, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.85) 80%, rgba(0,0,0,0.95) 95%);

	z-index: 1000;
	transition: all 0.8s;
}

@media screen and (max-width: 50em) {
	.lightbox {
		background: linear-gradient(90deg, rgba(0,0,0,0.94) 1%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,0.94) 99%);
	}
}


.lightbox.close {
	opacity: 0;
	pointer-events: none;
}

/* prevent website scrolling when the fullscreen mode is open */
body.lightbox-open {
	overflow: hidden;
}

.lightbox_center {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	overflow: auto;
}

.lightbox_content {

	flex: 0 1 auto;
	min-width: 0;
	min-height: 0;
	width: auto;
	max-height: 95vh;

	display: flex;
	gap: 2em;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.lightbox_img {
	flex: 0 1 auto;

	min-width: 0; /* Allow shrinking below content size */
	min-height: 0; /* Allow shrinking below content height */
	width: auto;
	max-height: 95vh;
	max-width: min(100%, 1280px);

	object-fit: contain;
	cursor: default;
}

.lightbox_text {
	flex: 0 0 300px;
	display: flex;
	flex-direction: column;
	gap: 2em;
	padding: 2em 1.5em;
	padding: 1em;
	cursor: default;
	max-height: 100vh;
	overflow-y: auto;
}

@media screen and (max-width: 50em) {
    .lightbox_center {
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: hidden;
        height: 100%;
    }

    .lightbox_content {
        flex-direction: column;
        width: 100%;
		height: 100%;
        margin: auto;
        padding: 1em 0;
        max-height: none;
		overflow-y: auto;
		justify-content: flex-start;
    }

    .lightbox_img {
        flex: 0 0 auto;
        width: 100%;
        max-height: 60vh;
        height: auto;
        min-height: 200px;
        object-fit: contain;
        margin: auto 0 0 0;
    }

    .lightbox_text {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        margin: 0 0 auto 0;
    }
}

.lightbox h4, .lightbox p {
	font-size: 1.2rem;
	color: var(--color-text-contrast);
	text-align: left;
	text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);

	padding: 0;
	margin: 0;
}

.lightbox h4:first-letter, .lightbox p:first-letter {
	text-transform: uppercase
}

.lightbox h4 {
	font-size: 1.6rem;
	line-height: 1.3em;
}

.lightbox p {
	font-size: 1.1rem;
}

.close_button {
	color: var(--color-text-contrast);
	cursor: pointer;
	font-size: 2rem !important;
}

@media screen and (max-width: 50em) {
	.close_button {
		font-size: 1.8rem !important;
	}
}

.spacer, .close_button {
	flex: 1;
}

.lightbox_nav {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;

	align-items: flex-end;
	z-index: 10;
}

.nav_left {
	padding: 1em 0 1em 1em;
}
.nav_right {
	padding: 1em 1em 1em 0;
}

@media screen and (max-width: 50em) {
	.nav_left {
		padding: .5em 0 .5em .5em;
	}
	.nav_right {
		padding: .5em .5em .5em 0;
	}
}

.previous_button {
	align-self: flex-start;
}

.previous_button, .next_button {
	color: var(--color-text-contrast);
	cursor: pointer;
	font-size: 3rem !important;
}

@media screen and (max-width: 50em) {
	.previous_button, .next_button {
		color: var(--color-text-contrast);
		cursor: pointer;
		font-size: 2.5rem !important;
	}
}

.previous_button.close, .next_button.close {
	visibility: hidden;
}

/* ^--- lightbox ---^ */
