/*
Theme Name: Paris-Brest
Theme URI: https://lecargo.org
Author: Le Cargo!
Author URI: https://lecargo.org
Description: A clean, modern block theme for Le Cargo! V5 webzine built according to modern Full Site Editing (FSE) standards.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paris-brest
Tags: blog, full-site-editing, block-themes, wide-blocks, custom-colors, custom-typography
*/

/* -------------------------------------------------------------------------
 * Photo Gallery styles (PhotoSwipe)
 * ------------------------------------------------------------------------- */
.lecargo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: var(--wp--preset--spacing--30, 1.5rem);
  margin-bottom: var(--wp--preset--spacing--40, 2rem);
}

.lecargo-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.lecargo-gallery__item-link {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--tertiary, #f3f4f6);
}

.lecargo-gallery__thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease-in-out;
}

.lecargo-gallery__item-link:hover .lecargo-gallery__thumbnail-img {
  transform: scale(1.04);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
