/* Victoria Bell Garden: the page */

.vgd-page {
	margin: 0;
	background: #faf8f3;
	color: #24221d;
	font-family: Alegreya, Georgia, serif;
	-webkit-font-smoothing: antialiased;
}
.vgd-top {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px clamp(16px, 3vw, 48px);
	background: rgba(250, 248, 243, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #e8e3d8;
}
.vgd-home {
	font-family: "Caveat Brush", cursive;
	font-size: 26px;
	color: inherit;
	text-decoration: none;
}
.vgd-edit {
	font: 500 14px/1 system-ui, -apple-system, sans-serif;
	color: #fff;
	background: #2f5d3a;
	padding: 9px 14px;
	border-radius: 999px;
	text-decoration: none;
}
.vgd-foot {
	text-align: center;
	font-size: 14px;
	color: #7a7468;
	padding: 40px 16px 56px;
}

/* the garden itself (also used inside a theme by the shortcode) */
.vgd {
	box-sizing: border-box;
	width: 100%;
	max-width: 1880px;
	margin: 0 auto;
	padding: 0 clamp(8px, 2.5vw, 48px);
}
.vgd *, .vgd *::before, .vgd *::after { box-sizing: border-box; }
.vgd-head {
	text-align: center;
	padding: clamp(28px, 6vw, 72px) 16px clamp(20px, 4vw, 44px);
}
.vgd-title {
	font-family: "Caveat Brush", cursive;
	font-weight: 400;
	font-size: clamp(44px, 7vw, 84px);
	line-height: 1;
	margin: 0 0 12px;
}
.vgd-intro {
	font-size: clamp(17px, 2vw, 21px);
	font-style: italic;
	color: #5c574d;
	max-width: 36em;
	margin: 0 auto;
}
.vgd-empty { text-align: center; color: #7a7468; padding: 40px 0; }

.vgd-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 4px;
}
.vgd-grid.vgd-js { grid-auto-rows: 4px; }   /* masonry: garden.js gives each photo its row span */
.vgd-item {
	display: block;
	position: relative;
	overflow: hidden;
	background: #e8e3d8;
	cursor: zoom-in;
}
.vgd-grid.vgd-js .vgd-item { aspect-ratio: auto !important; }
.vgd-item.is-big { grid-column: span 2; }
.vgd-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease, filter .3s ease;
}
.vgd-item:hover img { transform: scale(1.025); filter: brightness(1.04); }
.vgd-item:focus-visible { outline: 3px solid #2f5d3a; outline-offset: 2px; z-index: 1; }

@media (max-width: 1100px) { .vgd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .vgd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; } }

/* the photo viewer */
.vgd-box {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(14, 13, 11, .96);
	color: #fff;
}
.vgd-box::backdrop { background: rgba(14, 13, 11, .96); }
.vgd-box[open] { display: flex; align-items: center; justify-content: center; }
.vgd-box img {
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 32px);
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
}
.vgd-box button {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.vgd-box button:hover, .vgd-box button:focus-visible { background: rgba(255, 255, 255, .26); }
.vgd-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.vgd-next { right: 12px; top: 50%; transform: translateY(-50%); }
.vgd-close { right: 12px; top: 12px; }
@media (max-width: 700px) {
	.vgd-prev, .vgd-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vgd-item img { transition: none; }
	.vgd-item:hover img { transform: none; }
}

/* Photos / Movies tabs (shown only when there are both) */
.vgd-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 0 clamp(16px, 3vw, 28px); }
.vgd-tabs button {
	font: 500 16px/1 Alegreya, Georgia, serif;
	color: #5c574d;
	background: transparent;
	border: 1px solid #d8d2c4;
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
}
.vgd-tabs button[aria-selected="true"] { background: #2f5d3a; border-color: #2f5d3a; color: #fff; }
.vgd-tabs button:focus-visible { outline: 3px solid #2f5d3a; outline-offset: 2px; }
.vgd [hidden] { display: none !important; }

.vgd-movies {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(8px, 1.5vw, 20px);
	align-items: start;
}
.vgd-movie { margin: 0; background: #111; }
.vgd-movie video { display: block; width: 100%; height: auto; max-height: 82vh; background: #111; }
@media (max-width: 700px) { .vgd-movies { grid-template-columns: 1fr; } }
