/*
 * Responsive Skeleton (Mobile-first)
 * Covers: 480, 540, 600, 640, 667, 720, 768, 800, 834, 900, 1024,
 * 1080, 1140, 1200, 1280, 1366, 1440, 1600, 1680, 1920.
 */

:root {
	--container-max: 1140px;
	--gutter-inline: clamp(1rem, 2.6vw, 2rem);
	--section-space: clamp(2.5rem, 5vw, 5.5rem);
	--fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
	--fs-h1: clamp(1.85rem, 1.35rem + 2.5vw, 3.9rem);
	--fs-h2: clamp(1.45rem, 1.2rem + 1.4vw, 2.7rem);
	--fs-h3: clamp(1.1rem, 1rem + 0.7vw, 1.7rem);
}

html {
	font-size: 100%;
}

body {
	font-size: var(--fs-body);
}

img,
picture,
video,
iframe,
svg {
	max-width: 100%;
	height: auto;
}

.container {
	width: min(var(--container-max), calc(100% - (var(--gutter-inline) * 2)));
	margin-inline: auto;
}

section {
	padding-block: var(--section-space);
}

.site-content,
.page-wrap {
	overflow-wrap: anywhere;
}

/* Layout helpers */
.grid-2,
.grid-3,
.grid-4 {
	display: grid;
	gap: clamp(0.9rem, 1.5vw, 1.75rem);
}

.grid-2 {
	grid-template-columns: 1fr;
}

.grid-3 {
	grid-template-columns: 1fr;
}

.grid-4 {
	grid-template-columns: 1fr;
}

/* Base (below 480) small phones */
.hero-content {
	padding: clamp(1rem, 4vw, 1.4rem);
}

.hero-content h1 {
	font-size: var(--fs-h1);
}

.room-thumb img,
.gallery-view-trigger img,
.gallery-media img,
.gallery-media iframe,
.deferred-video-trigger img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* 480px - Small phones / portrait smartphones */
@media (min-width: 480px) {
	:root {
		--gutter-inline: 1rem;
	}
}

/* 540px - Medium phones / large Android phones */
@media (min-width: 540px) {
	:root {
		--gutter-inline: 1.1rem;
	}
}

/* 600px - Small tablets (portrait) */
@media (min-width: 600px) {
	.grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 640px - Phablets / small tablets */
@media (min-width: 640px) {
	.hero-content {
		padding: clamp(1.2rem, 2vw, 2rem);
	}
}

/* 667px - iPhone 6/7/8, SE */
@media (min-width: 667px) {
	:root {
		--section-space: clamp(3rem, 5vw, 5.75rem);
	}
}

/* 720px - HD+ phones */
@media (min-width: 720px) {
	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 768px - Tablets portrait / iPad portrait */
@media (min-width: 768px) {
	:root {
		--gutter-inline: 1.25rem;
	}
}

/* 800px - Small tablets landscape */
@media (min-width: 800px) {
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 834px - iPad Air portrait */
@media (min-width: 834px) {
	.hero-content {
		max-width: min(42rem, 88%);
	}
}

/* 900px - Small laptops / wide tablets */
@media (min-width: 900px) {
	.grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 1024px - Tablets landscape / small desktop */
@media (min-width: 1024px) {
	:root {
		--container-max: 1024px;
	}

	.grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 1080px - Full HD small desktops */
@media (min-width: 1080px) {
	:root {
		--container-max: 1080px;
	}
}

/* 1140px - Large laptops / web content max width */
@media (min-width: 1140px) {
	:root {
		--container-max: 1140px;
	}
}

/* 1200px - Large desktops */
@media (min-width: 1200px) {
	:root {
		--container-max: 1200px;
	}
}

/* 1280px - Standard desktop / widescreen */
@media (min-width: 1280px) {
	:root {
		--container-max: 1240px;
	}
}

/* 1366px - Common laptop resolution */
@media (min-width: 1366px) {
	:root {
		--container-max: 1280px;
	}
}

/* 1440px - Large desktops / widescreen monitors */
@media (min-width: 1440px) {
	:root {
		--container-max: 1320px;
	}
}

/* 1600px - Large monitors / high resolution laptops */
@media (min-width: 1600px) {
	:root {
		--container-max: 1400px;
	}
}

/* 1680px - Widescreen monitors */
@media (min-width: 1680px) {
	:root {
		--container-max: 1460px;
	}
}

/* 1920px - Full HD desktop monitors */
@media (min-width: 1920px) {
	:root {
		--container-max: 1520px;
	}
}
