/* ------------------------------------------------------------------------
   site.css - supplemental styles for the static rebuild of "grand tour"
   Loaded after the original "Stay" theme's style.css. Overrides the
   sidebar-gutter layout (this site has no widget sidebars) and adds
   styling for the hero slider, section cards, gallery/lightbox, embeds
   and language switcher that used to be rendered by WordPress plugins.
   ------------------------------------------------------------------------ */

* { box-sizing: border-box; }

body { background-color: #d2cfc7; }

#page {
	width: 100%;
	max-width: 1200px;
}

.navigation-main,
#page,
#colophon {
	width: 100%;
	max-width: 1200px;
}

#content { padding-left: 0; }
#primary { width: 100%; }

a { color: #004178; }
a:hover { color: #337dbb; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 0; }

/* Language switcher (reuses the theme's secondary-navigation styles) */
.secondary-navigation a {
	text-transform: uppercase;
	letter-spacing: .05em;
}

/* Hero slider on the home page */
.hero-slider {
	position: relative;
	height: 60vh;
	min-height: 320px;
	max-height: 560px;
	overflow: hidden;
	margin-bottom: 15px;
}
.hero-slider-track { position: relative; height: 100%; }
.hero-slider .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
}
.hero-slider .slide.is-active { opacity: 1; }
.hero-slider .slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hero-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 30px;
	background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
	color: #fff;
	text-align: center;
}
.hero-caption h2 {
	font-family: 'Gilda Display', serif;
	font-size: 2em;
	margin: 0 0 .3em 0;
	color: #fff;
}
.hero-caption p {
	max-width: 640px;
	margin: 0 auto .8em auto;
	font-size: 1em;
}

.btn {
	display: inline-block;
	background: #262626;
	color: #fff;
	padding: .6em 1.4em;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: .85em;
	border-radius: 2px;
}
.btn:hover { background: #004178; color: #fff; }

/* Section cards (Roma Parioli overview) */
.section-cards {
	list-style: none;
	margin: 20px 0 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.section-card a {
	display: block;
	background: #f6f6f6;
	padding: 20px;
	text-decoration: none;
	color: #262626;
	height: 100%;
	border: 1px solid #eee;
}
.section-card a:hover { background: #fff; border-color: #004178; }
.section-card h3 {
	font-family: 'Gilda Display', serif;
	margin-top: 0;
	color: #262626;
}
.section-card p { margin-bottom: 0; color: #565656; }

/* Gallery grid */
.gallery-grid {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.gallery-grid li { margin: 0; }
.gallery-grid a { display: block; }
.gallery-grid img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	border: 1px solid #eee;
}
.credit { font-size: .85em; color: #666; }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}
.lightbox[hidden] { display: none; }
.lightbox-image {
	max-width: 90vw;
	max-height: 85vh;
	box-shadow: 0 0 30px rgba(0,0,0,.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 2.5em;
	line-height: 1;
	cursor: pointer;
	padding: 10px 16px;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #ccc; }

/* Embeds (Google Maps / Calendar) */
.map-embed { margin: 15px 0; }
.map-embed iframe {
	width: 100%;
	height: 420px;
	border: 0;
}

@media screen and (max-width: 600px) {
	.hero-slider { height: 46vh; }
	.hero-caption h2 { font-size: 1.4em; }
}
