/*
Theme Name: Ψηλορείτης
Theme URI: https://www.psiloritis.gr
Description: Θέμα εμφάνισης για την Αδελφότητα Κρητών Ρόδου «Ο Ψηλορείτης». Βασίζεται στο Twenty Twenty-Five.
Author: Αδελφότητα Κρητών Ρόδου
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: psiloritis
*/

/* Κεφαλίδα */
.psil-header a { text-decoration: none; }
.psil-header .wp-block-site-title a,
.psil-header .wp-block-site-title { color: #fff; }
.psil-header .wp-block-navigation { color: #fff; }
.psil-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #1b2a40 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px;
	padding: 6px 0;
	min-width: 220px;
}
.psil-header .wp-block-navigation-item__content:hover { color: #e9d9b0; }
.psil-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #1b2a40 !important;
	color: #fff !important;
}

/* Κάρτες νέων */
.psil-news .wp-block-post { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(27, 42, 64, .12); height: 100%; }
.psil-news .wp-block-post-featured-image { margin: 0; }
.psil-news .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.psil-news .psil-card-body { padding: 14px 18px 18px; }
.psil-news .wp-block-post-title a { text-decoration: none; color: #1e2430; }
.psil-news .wp-block-post-title a:hover { color: #273b56; text-decoration: underline; }

/* Κουμπιά δραστηριοτήτων */
.psil-activities .wp-block-button__link { width: 100%; text-align: center; }

/* Συλλογές φωτογραφιών (παλιά άλμπουμ) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery .gallery-item { margin: 0; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; border: 0 !important; }
.gallery br { display: none; }

/* Παλιά κείμενα: εικόνες να μη βγαίνουν έξω από τη στήλη */
.entry-content img, .wp-block-post-content img { max-width: 100%; height: auto; }

/* Υποσέλιδο */
.psil-footer a { color: #fff; }
.psil-footer a:hover { color: #e9d9b0; }

/* --- Διορθώσεις 1.0.1 --- */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }
.psil-activities .wp-block-button__link { min-height: 64px; display: flex; align-items: center; justify-content: center; }
.psil-news .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
	content: ""; display: block; aspect-ratio: 4 / 3;
	background: #273b56 url("assets/images/logo-white.png") center / 110px no-repeat;
}
@media (max-width: 1100px) {
	.psil-header .wp-block-navigation { font-size: 0.95rem; }
}
