/* Global Remedies
******************/

/* Use border-box by default, globally */
*,
::before,
::after {
	box-sizing: border-box;
}

/*
* Consistent line spacing...
* CSS Inline Layout Module Level 3: https://drafts.csswg.org/css-inline-3/#line-sizing-property
*/
html {
	line-sizing: normal;
	overscroll-behavior: none
}

/* Remove the tiny space around the edge of the page */
body {
	margin: 0;
	transition-duration: 200ms;
	overscroll-behavior: none
}

/* Headings
***********/

/* Switch to rem units for headings */
/* @@@ Initial values are based on existing browser defaults */
h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.17rem;
}

h4 {
	font-size: 1.00rem;
}

h5 {
	font-size: 0.83rem;
}

h6 {
	font-size: 0.67rem;
}

/* Keep h1 margins consistent, even when nested */
h1 {
	margin: 0.67em 0;
}

/* Typography
*************/

/* Overflow by default is bad */
pre {
	white-space: pre-wrap;
}

/*
* 1. Solid, thin horizontal rules
* 2. Remove Firefox `color: gray`
* 3. Remove default `1px` height, and common `overflow: hidden`
*/
hr {
	border-style: solid;
	border-width: 1px 0 0;
	color: inherit;
	height: 0;
	overflow: visible;
}

/* Embedded Elements
********************/

/*
* 1. Block display is usually what we want
* 2. Remove strange space-below when inline
* 3. Responsive by default
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
	display: block;
	vertical-align: middle;
	max-width: 100%;
}

/*
* Maintain intrinsic aspect ratios when `max-width` is applied
* (iframe, embed, and object have no intrinsic ratio, set height explicitly)
*/
img,
svg,
video,
canvas {
	height: auto;
}

/*
* There is no good reason elements default to 300px,
* and audio files are unlikely to come with a width attribute
*/
audio {
	width: 100%;
}

/* Old Browsers
***************/

/* Remove the border on images inside links in IE 10 and earlier */
img {
	border-style: none;
}

/* Hide the overflow in IE 10 and earlier */
svg {
	overflow: hidden;
}

/* Default block display on HTML5 elements */
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
	display: block;
}

/*
* 1. Add the correct box sizing in IE 10
* 2. Remove the padding in IE 10
*/
[type='checkbox'],
[type='radio'] {
	box-sizing: border-box;
	padding: 0;
}

@font-face {
	font-family: 'GT America';
	src: url('assets/fonts/GTAmerica-Regular.woff2') format('woff2'),
		url('assets/fonts/GTAmerica-Regular.woff') format('woff'),
		url('assets/fonts/GTAmerica-Regular.svg#GTAmerica-Regular') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: fallback;
}

@font-face {
	font-family: 'GT America';
	src: url('assets/fonts/GTAmerica-RegularItalic.woff2') format('woff2'),
		url('assets/fonts/GTAmerica-RegularItalic.woff') format('woff'),
		url('assets/fonts/GTAmerica-RegularItalic.svg#GTAmerica-RegularItalic') format('svg');
	font-weight: normal;
	font-style: italic;
	font-display: fallback;
}

body {
	font-family: 'GT America';
	background-color: #f4f1c1;
	height: 100vh;
	height: calc(var(--vh, 1vh) * 100);
	display: flex;
	flex-direction: column;
	transition: background linear 1s;
}

/* HEADER */

header {
	display: flex;
	align-items: baseline;
	position: relative;
	top: 3%;
	margin-left: 3%;
	margin-right: 3%;
	height: 6%;
}

#logo {
	font-size: 2rem;
	z-index: 3;
}

a {
	color: #000000;
}

a.artwork-link {
	margin: 0 10px;
	width: 35px;
	height: 3px;
	display: inline-block;
	background: #000;
}

a.artwork-link:nth-of-type(1) {
	background: transparent;
	border: 1px solid #000;
}

#hamburger {
	font-size: 2rem;
	text-align: right;
}

/* MAIN */

main {
	height: 85%;
}

main img {
	max-height: 100%;
	margin: 0 auto;
}

/* FOOTER */

footer {
	position: absolute;
	bottom: 2%;
	font-size: clamp(0.62rem, 2.5vw, 0.8rem);
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 0 3%;
	align-items: flex-end;
	height: 6%;
}

#social img {
	width: 30px;
	/* opacity: 0.2; */
}

/* SWIPER */

.grid-container {
	display: grid;
	grid-template-columns: 50px 1fr 50px;
	gap: 0px 0px;
	grid-template-areas: "left-arrow fraction right-arrow";
	padding-left: 3%;
	z-index: 1;
}

.swiper-button-prev {
	grid-area: left-arrow;
}

.swiper-pagination-mobile {
	grid-area: fraction;
}

.swiper-button-next {
	grid-area: right-arrow;
}

.swiper-button-next,
.swiper-button-prev {
	color: #000 !important;
	z-index: 0 !important;
	background-repeat: no-repeat;
	height: 30px !important;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
	outline: none;
	box-shadow: none;
}

.swiper-button-next:after,
.swiper-container-rtl .swiper-button-prev:after,
.swiper-button-prev:after,
.swiper-container-rtl .swiper-button-next:after {
	content: "" !important;
}

.swiper-button-prev {
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 860.2 562.9' style='enable-background:new 0 0 860.2 562.9;' xml:space='preserve'%3E%3Cpath d='M281.2,0c12.4,12.6,24.8,25.1,37.2,37.6c3.3,3.3,6.6,6.5,10.3,10C260,114,191.8,180,122.7,246.8c246.4,0,491.8,0,737.5,0 c0,23.3,0,46,0,69.1c-245.5,0-490.9,0-736.2,0c-0.2,0.4-0.5,0.7-0.7,1.1c68,65.8,136,131.5,204.2,197.4 c-15.8,16.2-31.2,32-47.3,48.5C186.7,468.5,93.6,374.4,0,279.9C92.4,187.5,186.3,93.8,280.2,0C280.5,0,280.8,0,281.2,0z'/%3E%3C/svg%3E%0A");
}

.swiper-button-next {
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 862.3 563' style='enable-background:new 0 0 862.3 563;' xml:space='preserve'%3E%3Cpath d='M579.7,563c-16.1-15.6-32.2-31.3-48.6-47.3c69.4-67,137.6-132.9,206.9-200c-246.9,0-492.4,0-738,0c0-23.2,0-45.5,0-68.5 c245.6,0,491.1,0,736.6,0c0.2-0.4,0.3-0.7,0.5-1.1C669.1,180.3,601,114.6,532.9,48.8C548.4,32.9,564,16.9,580.5,0 C673.9,94.6,767,188.7,860,282.9c0.8-0.2,1.5-0.4,2.3-0.6c-1.6,1.2-3.3,2.2-4.7,3.5c-91.1,91-182.2,182-273.3,273.1 c-1.3,1.3-2.4,2.7-3.6,4.1C580.4,563,580.1,563,579.7,563z'/%3E%3C/svg%3E%0A");
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
	left: 3% !important;
}

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
	right: 3% !important;
}

.swiper-wrapper {
	text-align: center;
}

.swiper-container {
	height: 90%;
	margin-top: 40px;
	z-index: 0 !important;
	transition: visibility 300ms linear 300ms, opacity 300ms;
}

.swiper-pagination {
	position: relative !important;
	transition: visibility 300ms linear 300ms, opacity 300ms;
}

span.swiper-pagination-bullet {
	width: 35px;
	background: #000 !important;
	height: 3px;
	border-radius: 0;
	margin: 0 10px;
	opacity: 1;
}

span.swiper-pagination-bullet:focus,
.swiper-slide video:focus {
	outline: none;
	box-shadow: none;
}

.video-title {
	flex-basis: 40%;
}

.video-description {
	flex-basis: 60%;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: transparent !important;
	border: 1px solid #000;
}

.swiper-slide video {
    margin: 0 auto;
    cursor: pointer;
    max-width: 86%;
	max-height:75%
}

.swiper-slide {
	margin: 0 auto;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.description {
	display: flex;
	padding: 0 3%;
	text-align: left;
}

#swiper-pagination-mobile {
	display: none;
}

.esposizioni-hr {
	display: none;
}

/* MOBILE */
@media only screen and (max-width: 768px) {
	.grid-container {
		position: relative;
		top: -3%;
	}

	#hamburger-toggle:checked~nav .menu div {
		overflow: scroll;
	}

	.esposizioni-hr {
		border-top: 1px solid #000;
		padding-top: 15px;
		display: block;
	}

	main img,
	main video {
		padding: 3%;
		aspect-ratio: 3 / 4;
	}

	.menu-wrap {
		right: -3px !important;
	}

	.menu-wrap .menu>div {
		width: auto !important;
	}

	.swiper-slide video {
		height: unset !important;
	}

	.swiper-button-prev,
	.swiper-button-next {
		bottom: unset !important;
		top: unset !important;
		position: relative !important;
		margin-top: 0 !important;
	}

	#swiper-pagination-mobile {
		text-align: center;
		display: inline-block;
		margin-left: -10px;
	}

	#about>div:nth-of-type(2),
	#about>div:nth-of-type(3) {
		border-bottom: 1px solid #000;
		padding-bottom: 15px;
	}

	input#mc-embedded-subscribe {
		width: 100% !important;
	}

	.swiper-pagination {
		display: none;
	}

	.menu-wrap .menu {
		align-items: baseline !important;
		padding-top: 80px !important;
	}

	.video-description {
		display: none;
	}

	.description {
		position: absolute;
		bottom: 20px;
		width: 100%;
		text-align: center;
		font-size: 0.8rem;
	}

	.video-title {
		flex-basis: 100%;
	}

	#about>div:nth-child(1) {
		grid-area: column-1;
	}

	#about>div:nth-child(2) {
		grid-area: column-2;
	}

	#about>div:nth-child(3) {
		grid-area: column-3;
	}

	#about {
		grid-template-areas: "column-2" "column-3" "column-1" !important;
		grid-template-columns: 1fr !important;
		padding: 10% 3% !important;
	}

	#about .desktop {
		display: none;
	}

	#about .mobile {
		display: block !important;
		padding-bottom: 15px;
	}

	footer #footer-text {
		max-width: 85%
	}
}

/* IPHONE X */
@media only screen and (min-device-width: 375px) and (min-device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) {
	.swiper-container {
		top: -1.8% !important;
	}
}

/* IPHONE 11 */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
	.swiper-container {
		top: -1.8% !important;
	}
}

/* IPHONE 6,7,8 */

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation: portrait) and (device-aspect-ratio: 375/667) {

	.swiper-container {
		position: relative;
		top: -5%;
	}

	.grid-container {
		top: -7.2%;
	}
}

/* IPAD PORTRAIT HEADER ALIGNMENT */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
	#logo {
		line-height: 1.3em !important;
	}

	main img {
		max-height: 100% !important;
	}
}

/* IPAD PRO PORTRAIT HEADER ALIGNMENT */

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
	#logo {
		line-height: 0 !important;
	}
}

/* IPAD PRO LANDSCAPE HEADER ALIGNMENT */

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
	#logo {
		line-height: 1.2em !important;
	}
}

/* IPAD LANDSCAPE HEADER ALIGNMENT */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
	#logo {
		line-height: 1.9em !important;
	}
}

/* MENU STYLES */

/* Hide the checkbox */
#hamburger-toggle {
	display: none;
}

/* Hamburger Icon Wrapper */
.hamburger-icon-wrapper {
	cursor: pointer;
	position: fixed;
	right: 3%;
	z-index: 1001;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Hamburger Icon (lines) */
.hamburger-icon {
	position: relative;
	width: 30px;
	height: 3px;
	background-color: #000;
	transition: all 0.3s ease;
}

/* Top and Bottom Lines */
.hamburger-icon:before,
.hamburger-icon:after {
	content: '';
	position: absolute;
	left: 0;
	width: 30px;
	height: 3px;
	background-color: #000;
	transition: all 0.3s ease;
}

.hamburger-icon:before {
	top: -10px;
}

.hamburger-icon:after {
	top: 10px;
}

/* Menu Overlay */
.menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	visibility: hidden;
	opacity: 0;
	overflow: hidden;
	display: flex;
	background: #e3fcf9;
	transition: opacity 0.5s ease; /* Smooth opacity transition */
	z-index: 2;
}

#hamburger-toggle:checked~nav .menu {
	visibility: visible;
	opacity: 1;
	z-index: 2;
}

/* To ensure visibility is hidden after fade-out is complete */
#hamburger-toggle:not(:checked)~nav .menu {
	transition: opacity 0.5s ease, visibility 0s 0.5s; /* Delay hiding until after the fade-out */
	visibility: hidden;
	opacity: 0;
}

/* Hide main content (Swiper) when menu is open */
#hamburger-toggle:checked~main {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.5s ease, visibility 0s 0.5s; /* Delay reappearance after menu closes */
}

/* Show main content (Swiper) when menu is closed */
#hamburger-toggle:not(:checked)~main {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.5s ease;
}

/* Animate Hamburger to X */
#hamburger-toggle:checked~.hamburger-icon-wrapper .hamburger-icon:before {
	transform: rotate(45deg);
	top: 0;
}

#hamburger-toggle:checked~.hamburger-icon-wrapper .hamburger-icon:after {
	transform: rotate(-45deg);
	top: 0;
}

#hamburger-toggle:checked~.hamburger-icon-wrapper .hamburger-icon {
	background-color: transparent;
}

/* ABOUT */

#about .mobile {
	display: none;
}

#about {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 2rem;
	margin: 0 auto;
	width: 100vw;
	padding: 3%;
}

input#mc-embedded-subscribe {
	background: #000;
	color: #e3fcf9;
	margin-top: 20px;
	padding: 11px 30px;
	border: 0;
	width: 50%;
	cursor: pointer;
	border-radius: 3px;
	font-size: 1rem;
}

input[type="text"],
input[type="email"] {
	padding: 10px;
	width: 100%;
}

.divider {
	margin-top: 50px;
}

/* MAILCHIMP */
#mc-hidden {
	position: absolute;
	left: -5000px;
}

#mce-error-response,
#mce-success-response {
	display: none;
}