/* Foto Store — griglia album (shortcode [foto_store_albums]) */

/* Il tema rende il <main> come griglia content+sidebar: sull'archivio album lo
   forziamo a blocco full-width così la banda titolo e la griglia non si schiacciano. */
body.post-type-archive-fs_album #main-content { display: block !important; }
body.post-type-archive-fs_album .main-page-wrapper,
body.post-type-archive-fs_album #main-content { padding-top: 0 !important; }

/* Banda titolo dell'archivio (l'header trasparente del tema si appoggia sopra) */
.fs-hero {
	position: relative;
	width: 100vw;
	margin-left: calc( 50% - 50vw );
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.fs-hero-plain { background: #1e73be; }
.fs-hero-inner { position: relative; z-index: 1; padding: 100px 20px 50px; max-width: 1000px; }
.fs-hero-title { color: #fff; font-size: 42px; font-weight: 800; line-height: 1.1; margin: 0; }
@media ( max-width: 768px ) {
	.fs-hero { min-height: 260px; }
	.fs-hero-inner { padding: 80px 16px 36px; }
	.fs-hero-title { font-size: 28px; }
}

/* Contenitore archivio /foto/ (il padding orizzontale lo dà il container del tema) */
.fs-albums-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 0 64px;
}
.fs-albums-head { margin: 0 0 8px; }
.fs-albums-title {
	font-size: 30px;
	font-weight: 800;
	margin: 0;
}

.fs-albums {
	display: grid;
	grid-template-columns: repeat( var( --fs-cols, 3 ), 1fr );
	gap: 28px;
	margin: 24px 0 48px;
}
@media ( max-width: 1024px ) { .fs-albums { grid-template-columns: repeat( 2, 1fr ); } }
@media ( max-width: 600px )  { .fs-albums { grid-template-columns: 1fr; gap: 18px; } }

.fs-albums-empty { opacity: .7; font-style: italic; }

/* Card — stile /galleria */
.fs-acard {
	display: block;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .08 );
	transition: box-shadow .2s ease;
}
.fs-acard:hover { box-shadow: 0 10px 26px rgba( 0, 0, 0, .12 ); }

/* Cover */
.fs-acard-cover {
	position: relative;
	display: block;
	height: 224px;
	background: #f3f4f6;
	overflow: hidden;
}
.fs-acard-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}
.fs-acard:hover .fs-acard-cover img { transform: scale( 1.05 ); }
.fs-acard-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	opacity: .25;
}
.fs-acard-count {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba( 0, 0, 0, .6 );
	border-radius: 999px;
}
.fs-acard-count svg { width: 13px; height: 13px; }

/* Body */
.fs-acard-body { display: block; padding: 20px; }
.fs-acard-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
	transition: color .15s ease;
}
.fs-acard:hover .fs-acard-title { color: var( --btn-accented-bgcolor, #1d4ed8 ); }
.fs-acard-more {
	display: block;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #eee;
	font-size: 14px;
	font-weight: 600;
	color: var( --btn-accented-bgcolor, #2563eb );
}
