/* Gallery page: hero, then a 12-column mosaic of square units (places: voyageo_photo_grid()). */
.vt-gallery-head { align-items: center; min-height: clamp(22rem, 16rem + 16vw, 31rem); }
.vt-gallery-head .vt-photo-head__content { width: 100%; padding-block: 3.5rem; }
.vt-gallery-head .vt-photo-head__media::after { background: linear-gradient(90deg, rgba(6, 14, 26, .8) 0%, rgba(6, 14, 26, .55) 45%, rgba(6, 14, 26, .15) 100%); }
[dir="rtl"] .vt-gallery-head .vt-photo-head__media::after { background: linear-gradient(270deg, rgba(6, 14, 26, .8) 0%, rgba(6, 14, 26, .55) 45%, rgba(6, 14, 26, .15) 100%); }
.vt-gallery-head .vt-photo-head__intro { max-width: 32em; }
.vt-gallery-head .vt-crumbs { margin-block: 1.75rem 0; }

.vt-photos { container-type: inline-size; }
.vt-photos__grid {
	--gap: 1rem;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: calc((100cqw - 11 * var(--gap)) / 12); /* square units */
	gap: var(--gap);
}
.vt-photos__item { grid-column: var(--c); grid-row: var(--r); display: block; overflow: hidden; background: #D9D3C8; }
.vt-photos__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--vt-ease); }
.vt-photos__item:hover img { transform: scale(1.04); }
.vt-photos__item:focus-visible { outline: none; box-shadow: var(--vt-focus); }

/* Phones: two columns, one wide photo then two squares; the last photo never leaves a gap. */
@media (max-width: 47.99rem) {
	.vt-photos__grid { --gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
	.vt-photos__item { grid-area: auto; aspect-ratio: 1; }
	.vt-photos__item:nth-child(3n + 1), .vt-photos__item:last-child:nth-child(3n + 2) { grid-column: span 2; aspect-ratio: 3 / 2; }
}
