/* ============================================================
   GALLERY CREATOR (markocupic) – Contao 5
   Neu strukturiert, Mobile-First
   Ersetzt alte Contao-4-Klassen (ce_gallery_creator_ce, list_albums,
   col_1/col_2, album_preview, backLink ...) durch die neuen
   gc-*-Klassen des Bundles.

   Basis-Bericht: eigenes Dokument "Gallery Creator – CSS-Umstellung
   für Contao 5" (FTS Husum, übertragen auf kgs-heide.de)

   Breakpoints (an bestehende Website-Struktur angelehnt):
   - Mobile:            < 768px   (Basis, ohne Media Query)
   - Tablet Landscape:  768px – 1199px
   - Desktop:           ≥ 1200px
   ============================================================ */


/* ------------------------------------------------------------
   1. ÜBERSICHTSSEITE (Album-Liste) – Basis / Mobile
   ------------------------------------------------------------ */

.gc-album-list-view {
	width: 100%;
}

.gc-album-list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 1rem;
	padding-left: 0 !important;
	margin-left: 0;
}

.gc-album-list-item {
	width: 100%;
	background-color: #fff;
	box-shadow: -2px 2px 2px 0 rgba(0, 0, 0, 0.25);
	border: none;
}

.gc-album-list-inner {
	display: flex;
	flex-direction: column;
}

.gc-album-list-figure {
	margin: 0;
}

.gc-album-list-figure img {
	width: 100%;
	display: block;
}

.gc-album-list-facts {
	padding: 0.5rem;
}

.gc-album-list-name {
	margin: 0 0 0.3rem 0;
	font-size: 1rem;
	font-weight: 600;
}

.gc-album-list-date,
.gc-album-list-picture-count,
.gc-album-list-visitors {
	font-size: 0.8rem;
	line-height: 1rem;
	color: #333;
	margin-bottom: 0;
}

.gc-album-list a {
	text-decoration: none !important;
}

/* TODO prüfen: Klassenname für Album-Kommentar in Contao 5 noch
   nicht bestätigt (im gelieferten Beispiel-HTML nicht enthalten).
   Alte Regel vorerst als Fallback belassen: */
.gallery_creator .album_comment,
.startseite .mod_newslist.vorschau .caption {
	display: none;
}


/* ------------------------------------------------------------
   2. DETAILANSICHT (einzelnes Album) – Basis / Mobile
   ------------------------------------------------------------ */

.gc-album-detail-view {
	width: 100%;
}

.gc-album-detail-back-link {
	margin-bottom: 1rem;
}

.gc-album-detail-back-link a {
	text-decoration: none;
}

.gc-album-detail-name {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	color: #032236;
	font-size: 1.2rem;
}

.gc-album-detail-date {
	font-size: 0.9rem;
	color: #333;
	margin-bottom: 1rem;
}

.gc-album-detail-picture-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	padding-left: 0 !important;
	margin: 0;
}

.gc-album-detail-picture-list-item {
	margin: 0;
}

.gc-album-detail-picture-list-item figure {
	margin: 0;
}

.gc-album-detail-picture-list-item img {
	display: block;
	border: 1px solid rgba(136, 51, 0, 0.3);
	border-radius: 0.2rem;
	padding: 0.2rem;
	transition: transform 0.3s ease;
}

/* Hover-Effekt auf Thumbnails (bundle-versionsunabhängig) */
.gc-album-detail-picture-list-item a:hover img {
	transform: scale(1.05);
}


/* ------------------------------------------------------------
   3. TABLET LANDSCAPE (768px – 1199px)
   ------------------------------------------------------------ */

@media only screen and (min-width: 768px) and (max-width: 1199px) {

	.gc-album-list {
		flex-direction: row;
	}

	.gc-album-list-item {
		width: calc(50% - 0.5rem);
	}
}


/* ------------------------------------------------------------
   4. DESKTOP (ab 1200px)
   ------------------------------------------------------------ */

@media only screen and (min-width: 1200px) {

	.gc-album-list {
		flex-direction: row;
	}

	.gc-album-list-item {
		width: calc(25% - 0.75rem);
	}
}


/* ------------------------------------------------------------
   5. UNVERÄNDERT LASSEN – Einbindung in Newsartikeln
   (kein neues HTML zur Bestätigung vorhanden, daher alte
   Contao-4-Klassen vorerst beibehalten)
   ------------------------------------------------------------ */

.ce_gallery_creator_ce_news h2,
.mod_newsreader .ce_gallery_creator_ce_news.gallery_creator h3 {
	display: none;
}

.ce_gallery ul,
.ce_gallery_creator_ce_news.gallery_creator ul.album_preview {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.2rem;
	flex-wrap: wrap;
}

.ce_gallery_creator_ce_news img {
	height: 20vh;
	width: auto;
	display: block;
	margin: 0 auto;
}
