/* Image gallery — grilă pe __grid, legendă sub imagine */
@layer horeca.components {
  .horeca-blog-gallery {
    margin: var(--horeca-space-6) 0;
    max-width: var(--horeca-wide-width);
  }

  .horeca-blog-gallery__grid {
    display: grid;
    gap: var(--horeca-space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .horeca-blog-gallery__item {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
  }

  .horeca-blog-gallery__item.is-lead {
    grid-column: 1 / -1;
  }

  .horeca-blog-gallery__item img {
    aspect-ratio: 4 / 3;
    border-radius: var(--horeca-radius-sm);
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
  }

  .horeca-blog-gallery__item.is-lead img {
    aspect-ratio: 16 / 9;
  }

  .horeca-blog-gallery__caption,
  .horeca-blog-gallery__item figcaption {
    background: none;
    color: var(--horeca-muted);
    display: block;
    font-size: 0.8125rem;
    font-style: normal;
    line-height: 1.45;
    margin: 0;
    order: 2;
    padding-top: 0.5rem;
    position: static;
    width: 100%;
  }

  @media (max-width: 37.5rem) {
    .horeca-blog-gallery {
      margin: 2.25rem 0;
    }

    .horeca-blog-gallery__grid {
      gap: var(--horeca-space-4);
      grid-template-columns: 1fr;
    }

    .horeca-blog-gallery__item.is-lead {
      grid-column: auto;
    }

    .horeca-blog-gallery__item.is-lead img {
      aspect-ratio: 4 / 3;
    }
  }
}

/*
 * În afara @layer — bate #article-single-content img din app.css
 */
html body #article-single-content .horeca-blog-gallery,
html body .horeca-blog-gallery {
	clear: both !important;
	display: block !important;
	isolation: isolate;
	margin: 3rem 0 !important;
	max-width: 64rem !important;
	overflow: hidden !important;
	position: relative !important;
	width: 100% !important;
}

html body #article-single-content .horeca-blog-gallery__grid,
html body .horeca-blog-gallery__grid {
	display: grid !important;
	gap: 1rem !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	width: 100% !important;
}

html body #article-single-content .horeca-blog-gallery__item,
html body .horeca-blog-gallery__item {
	display: flex !important;
	flex-direction: column !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0 !important;
	position: relative !important;
	width: auto !important;
}

html body #article-single-content .horeca-blog-gallery__item.is-lead,
html body .horeca-blog-gallery__item.is-lead {
	grid-column: 1 / -1 !important;
}

html body #article-single-content .horeca-blog-gallery__item img,
html body .horeca-blog-gallery__item img {
	aspect-ratio: 4 / 3 !important;
	border-radius: 0.25rem !important;
	display: block !important;
	float: none !important;
	height: auto !important;
	margin: 0 !important;
	max-width: 100% !important;
	object-fit: cover !important;
	order: 1 !important;
	position: relative !important;
	width: 100% !important;
}

html body #article-single-content .horeca-blog-gallery__item.is-lead img,
html body .horeca-blog-gallery__item.is-lead img {
	aspect-ratio: 16 / 9 !important;
}

html body #article-single-content .horeca-blog-gallery__caption,
html body .horeca-blog-gallery__caption,
html body #article-single-content .horeca-blog-gallery__item figcaption,
html body .horeca-blog-gallery__item figcaption {
	background: none !important;
	bottom: auto !important;
	color: #62676b !important;
	display: block !important;
	float: none !important;
	font-size: 0.8125rem !important;
	font-style: normal !important;
	inset: auto !important;
	left: auto !important;
	line-height: 1.45 !important;
	margin: 0 !important;
	max-height: none !important;
	order: 2 !important;
	padding: 0.5rem 0 0 !important;
	position: static !important;
	right: auto !important;
	text-align: left !important;
	top: auto !important;
	width: 100% !important;
	z-index: auto !important;
}

@media (max-width: 37.5rem) {
	html body #article-single-content .horeca-blog-gallery__grid,
	html body .horeca-blog-gallery__grid {
		gap: 1.5rem !important;
		grid-template-columns: 1fr !important;
	}

	html body #article-single-content .horeca-blog-gallery__item.is-lead,
	html body .horeca-blog-gallery__item.is-lead {
		grid-column: auto !important;
	}

	html body #article-single-content .horeca-blog-gallery__item.is-lead img,
	html body .horeca-blog-gallery__item.is-lead img {
		aspect-ratio: 4 / 3 !important;
	}
}
