@charset "UTF-8";
/* --------------------------------------------------------------------------
   plg_content_gkpcalbums — φωτογραφικά άλμπουμ και βίντεο μέσα σε άρθρο
   gkpc.gr

   Αυτοτελές: δεν χρειάζεται τίποτε από το πρότυπο. Τα χρώματα βγαίνουν από
   μεταβλητές με εφεδρικές τιμές, ώστε να δένει με ό,τι πρότυπο κι αν έχετε.
   -------------------------------------------------------------------------- */

.gkpc-gallery,
.gkpc-videos,
.gkpc-video,
.gkpc-lightbox {
	--gkpc-gap: 0.7rem;
	--gkpc-radius: 4px;
	--gkpc-accent: #8a6d3b;
	--gkpc-ink: #2b2b2b;
	--gkpc-faint: #6a6a6a;
	--gkpc-shadow: 0 2px 10px rgb(0 0 0 / 12%);
	--gkpc-veil: #12100e;
}

/* ── Το πλέγμα των φωτογραφιών ───────────────────────────────────────────── */
.gkpc-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
	gap: var(--gkpc-gap);
	margin-block: clamp(1.4rem, 3vw, 2.4rem);
	padding: 0;
	list-style: none;
}

@media (max-width: 30rem) {
	.gkpc-gallery { grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); }
}

.gkpc-gallery__item {
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: var(--gkpc-radius);
	background: rgb(0 0 0 / 6%);
	box-shadow: var(--gkpc-shadow);
}

.gkpc-gallery__link {
	display: block;
	position: relative;
	line-height: 0;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.gkpc-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: scale 0.5s ease, filter 0.5s ease;
}

.gkpc-gallery__item:hover img,
.gkpc-gallery__link:focus-visible img { scale: 1.06; }

.gkpc-gallery__link:focus-visible {
	outline: 3px solid var(--gkpc-accent);
	outline-offset: -3px;
}

/* Ο μεγεθυντικός φακός εμφανίζεται στο πέρασμα */
.gkpc-gallery__link::after {
	content: "";
	position: absolute;
	inset-block-end: 0.5rem;
	inset-inline-end: 0.5rem;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 88%) no-repeat center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
	background-size: 1rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gkpc-gallery__item:hover .gkpc-gallery__link::after { opacity: 1; }

.gkpc-gallery__intro {
	margin-block-end: 1.2rem;
	color: var(--gkpc-faint);
}

.gkpc-gallery__empty {
	padding: 1.2rem;
	border: 1px dashed rgb(0 0 0 / 20%);
	border-radius: var(--gkpc-radius);
	color: var(--gkpc-faint);
	text-align: center;
}

/* ── Ένα βίντεο ──────────────────────────────────────────────────────────── */
.gkpc-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--gkpc-radius);
	background: #000;
	box-shadow: var(--gkpc-shadow);
	margin-block: clamp(1.4rem, 3vw, 2.4rem);

	/* Ένα βίντεο μόνο του δεν χρειάζεται όλο το πλάτος της σελίδας */
	width: min(48rem, 100%);
	margin-inline: auto;
}

.gkpc-video iframe,
.gkpc-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Κατακόρυφο βίντεο, όπως βγαίνει από κινητό */
.gkpc-video--vertical {
	aspect-ratio: 9 / 16;
	width: min(24rem, 100%);
	margin-inline: auto;
}

/* ── Πολλά βίντεο μαζί ───────────────────────────────────────────────────── */
.gkpc-videos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
	gap: clamp(1rem, 2.5vw, 1.6rem);
	margin-block: clamp(1.4rem, 3vw, 2.4rem);
}

.gkpc-videos--one {
	grid-template-columns: 1fr;
	max-width: 48rem;
	margin-inline: auto;
}

.gkpc-videos__item { margin: 0; }

.gkpc-videos__item .gkpc-video {
	width: 100%;
	margin-block: 0;
}

.gkpc-videos__item figcaption {
	margin-block-start: 0.55rem;
	font-size: 0.85rem;
	color: var(--gkpc-faint);
	text-align: center;
}

/* ── Η μεγέθυνση ─────────────────────────────────────────────────────────── */
.gkpc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: color-mix(in srgb, var(--gkpc-veil) 94%, transparent);
	backdrop-filter: blur(3px);
}

.gkpc-lightbox[hidden] { display: none; }

.gkpc-lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1rem;
	color: #fff;
	font-size: 0.85rem;
}

.gkpc-lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 0 clamp(0.5rem, 4vw, 4rem);
}

.gkpc-lightbox__stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 2px;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 55%);
}

.gkpc-lightbox__foot {
	padding: 0.8rem 1rem 1.2rem;
	color: rgb(255 255 255 / 78%);
	font-size: 0.85rem;
	text-align: center;
	min-height: 2.4rem;
}

.gkpc-lightbox button {
	border: 0;
	background: rgb(255 255 255 / 12%);
	color: #fff;
	border-radius: 50%;
	width: 2.8rem;
	height: 2.8rem;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.gkpc-lightbox button:hover,
.gkpc-lightbox button:focus-visible { background: rgb(255 255 255 / 26%); }

.gkpc-lightbox__prev,
.gkpc-lightbox__next {
	position: absolute;
	inset-block-start: 50%;
	translate: 0 -50%;
	z-index: 2;
}

.gkpc-lightbox__prev { inset-inline-start: clamp(0.3rem, 2vw, 1.4rem); }
.gkpc-lightbox__next { inset-inline-end: clamp(0.3rem, 2vw, 1.4rem); }

.gkpc-lightbox__count { letter-spacing: 0.08em; }

@media (prefers-reduced-motion: reduce) {
	.gkpc-gallery__item img { transition: none; }
}

/* Στην εκτύπωση, το πλέγμα μικραίνει και η μεγέθυνση δεν έχει νόημα */
@media print {
	.gkpc-gallery { grid-template-columns: repeat(4, 1fr); }
	.gkpc-lightbox { display: none !important; }
}
