/* "Bu tarifi yapanlar" (Customizations\RecipeCookedGallery): photos of the
   recipe's approved comments as a row of squares, the last one "+N" when
   there are more. Colours from the brand tokens of the child theme. */

.yt-cooked .gt-title .yt-cooked-count {
	margin-left: .375rem;
	color: var(--yt-brand-muted, #6b7472);
	font-size: .875rem;
	font-weight: 400;
}

.yt-cooked-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: .625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yt-cooked-grid li {
	margin: 0;
	padding: 0;
}

.yt-cooked-grid li[hidden] {
	display: none;
}

.yt-cooked-grid a {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 14px;
	background: var(--yt-surface, #fff3ea);
}

.yt-cooked-grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.yt-cooked-grid a:hover img,
.yt-cooked-grid a:focus-visible img {
	transform: scale(1.05);
}

.yt-cooked-grid a:focus-visible {
	outline: 2px solid var(--yt-brand-orange, #ff4400);
	outline-offset: 2px;
}

/* "+N": the rest of the photos open from the last square. */
.yt-cooked-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.yt-cooked-cta {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
	color: var(--yt-brand-orange, #ff4400);
	font-weight: 600;
	text-decoration: none;
}

.yt-cooked-cta:hover {
	color: var(--yt-brand-orange, #ff4400);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
	.yt-cooked-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: .5rem;
	}

	.yt-cooked-grid a {
		border-radius: 10px;
	}
}

/* The photo's caption in Platea's fancybox: name, stars, "Yorumu gör". */
.fancybox__caption a[data-fancybox-close] {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
