/* Gallery */

:root {
	--menu-border: 2px solid var(--text-color);
}

#works-container {
	display: flex;
    flex-direction: column;
}

#tabs {
    display: flex;
	justify-content: center;
	border-bottom: var(--menu-border);
}

.tab {  
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.tab:not(:last-child) {
	margin-right: 5px;
}

.tab.selected {
	background-color: var(--btn-color-hover);
	transition: background-color 0.5s ease;
}

@media (max-width: 700px) {
	#tabs {flex-direction: column;}

	.tab {
		width: 100%;
		border-top: var(--menu-border);
		border-bottom: var(--menu-border);
		border-left: var(--menu-border);
		border-right: var(--menu-border);
	}

	.tab:not(:first-child) {
		border-radius: 0px;
		border-top: none;
	}
}

#works {
	padding-top: 5px;
	padding-bottom: 5px;
    display: grid;
	grid-gap: 0.5em;
	grid-template-columns: repeat(auto-fit, minmax(var(--box-width), 1fr));
}

#popup {
	background: var(--bg-color);
	border-radius: 3px;
	border: 2px solid var(--text-color);
	overflow-x: auto;
	overflow-y: auto;
	width: fit-content;
	height: fit-content;
	text-align: center;

	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

#display-img {
	max-height: 80vh;
	max-width: 80vw;
	padding: 5px;
	border-radius: 8px;
}

.painting {
	max-width: var(--gallery-img-sz);
	max-height: var(--gallery-img-sz);
}

.painting-container {
	border: 2px solid var(--text-color);
}