/**
 * Dog gallery block.
 *
 * Colours use the theme palette (Twenty Twenty-Five slugs).
 *
 * @package sftw-dogs
 */

.sftw-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20, 0.75rem);
}

.sftw-gallery__main {
	margin: 0;
}

.sftw-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	background: var(--wp--preset--color--accent-5);
}

.sftw-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20, 0.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sftw-gallery__thumb {
	display: block;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
}

.sftw-gallery__thumb[aria-current="true"] {
	border-color: var(--wp--preset--color--contrast);
}

.sftw-gallery__thumb:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.sftw-gallery__thumb-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
