/*!
Theme Name: Lucile
Theme URI: http://underscores.me/
Author: Underscores.me
Version: 1.0.0
Text Domain: lucile
*/

/*--------------------------------------------------------------
# Generic & Base
--------------------------------------------------------------*/
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: #f2f1f0; /* Soft off-white matching page background */
	color: #111111;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
	color: inherit;
	text-decoration: none;
}

p a {
	text-decoration: underline;
}

img, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

@font-face {
  font-family: Lucile; /* set name */
  src: url(assets/LucileSMS.otf); /* url of the font */
}


.site-footer, .posts-navigation, .entry-footer{
	width:100%;
	text-align: center;
	font-family: Lucile;
	color: #000000;
	padding: 1rem;
}

.site-info {
	color: #000000;
}

.nav-links {
	width:100%;
	font-family: Lucile;
	color: #000000;
	padding: 1rem;
}

.nav-previous {
	text-align: left;
	float: left;
}

.nav-next {
	text-align: right;
	float: right;
}

a:hover {
	color: #b9bfc7;
}

h1 {
	  font-family: Lucile; /* set name */
	  font-size: 40px;
	  color: #000000;

}

h2 {
	  font-family: Lucile; /* set name */
	  font-size: 30px;
	  color: #000000;

}

/* Disable clickability on image links site-wide */
.entry-content a:has(img),
.wp-block-image a,
.wp-block-gallery a {
	pointer-events: none;
	cursor: default;
}


.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content figure img {
	width: 100% !important;
	height: auto !important;
}

/*--------------------------------------------------------------
# Site Header & Layout
--------------------------------------------------------------*/
#masthead {
	padding:1rem;
}

.site-container {
	width: 90%;
	margin: 0 auto;
	padding: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1rem 0 1.5rem 0;
	background: transparent;
}

.site-branding {
	width: 300px;
}

.site-branding svg {
	width: 100%;
	height: auto;
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
#site-navigation {
	padding-top: 0px;
}

.menu-icon-logo {
	z-index:10000;
	padding-right: 20px;
}



.main-navigation ul {
	display: flex;
	align-items: flex-start;
	gap: 4.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: inline-block;
	padding: 0;
}



/* SVG sizing in desktop navigation */
.main-navigation a svg {
	height: 25px; /* Standardize menu SVG height */
	width: auto;
}

/* Sub-Menu Dropdown (Hovering over Works) */
.main-navigation ul ul {
	min-width: 300px;
	position: absolute;
	top: 100%;
	left: 5px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.8rem;
	padding-top: 0.8rem;
	background: transparent; /* Transparent background */
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Sub-menu item SVG sizing */
.main-navigation ul ul a svg {
	height: 28px;
	width: auto;
}

/* Target only the grey path class on hover (replace .cls-2 with your actual grey class) */
.main-navigation ul ul a:hover svg .cls-1, 
.site-branding a:hover svg .cls-1,
.main-navigation a:hover svg .cls-1 {
	fill: #b9bfc7 !important; /* blue fill on hover */
	transition: fill 0.2s ease;
}


/* Expand Sub-Menu on Hover/Focus */
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	opacity: 1;
	visibility: visible;
}

/*--------------------------------------------------------------
# Mobile Navigation Overlay
--------------------------------------------------------------*/


/* Mobile Overlay Logo Sizing */
.mobile-overlay-header .site-branding {
	width: 300px; /* Adjust logo width in mobile menu as needed */
}

.mobile-overlay-header .site-branding svg {
	width: 100%;
	height: auto;
}

.mobile-menu-toggle,
.mobile-menu-close {
	background: none;
	border: none;
	cursor: pointer;
}
.mobile-menu-toggle {
	padding: 0 0 0 0;
}

.mobile-menu-close {
	padding: 0 0 0 0;
}

.mobile-menu-toggle svg,
.mobile-menu-close svg {
	width: 42px;
	height: auto;
}

.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: #f2f1f0; /* Matches mockup background */
	display: flex;
	flex-direction: column;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	overflow-y: auto;
}

.mobile-menu-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.mobile-overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.mobile-navigation {
	margin-top: 3rem;
}

.mobile-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.8rem;
}

.mobile-navigation a svg {
	height: 48px;
	width: auto;
}

/* Indented sub-items on mobile */
.mobile-navigation ul ul {
	padding-left: 2.5rem;
	margin-top: 1.5rem;
	gap: 1.2rem;
}

.mobile-navigation ul ul a svg {
	height: 32px;
	width: auto;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
@media (max-width: 850px) {
	.desktop-only {
		display: none !important;
	}
	.mobile-only {
		display: block !important;
	}
	
	/* Full-width container on mobile */
	.site-container {
		width: 100%;
		padding: 0 0.75rem; /* Reduces side padding to give images more room */
	}

	/* Force frame wrappers and excerpts to use all available mobile width */
	.post-frame-wrapper,
	.entry-summary {
		max-width: 100%;
	}
}

@media (min-width: 851px) {
	.desktop-only {
		display: block !important;
	}
	.mobile-only {
		display: none !important;
	}
}

/* ==========================================
   1. HOMEPAGE ALTERNATING POST LAYOUT
   ========================================== */

.posts-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
	margin-top: 3rem;
}

/* Card container now spans the FULL main container width */
.homepage-post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
}

/* Centered Date across the main container width */
.post-card-date {
	width: 100%;
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	color: #444444; /* Adjust color hex as desired */
}

/* Cap width of images and excerpts only */
.post-frame-wrapper,
.entry-summary {
	width: 100%;
	max-width: 650px; /* Controls maximum width of image/excerpt cards */
}

/* --- Left Floating Posts (Odd) --- */
.homepage-post-card:nth-child(odd) .post-frame-wrapper,
.homepage-post-card:nth-child(odd) .entry-summary {
	align-self: flex-start;
	text-align: left;
}

.homepage-post-card:nth-child(odd) .entry-summary {
	background-color: #b9bfc7; /* Grey */
	color: #000000;
}

/* --- Right Floating Posts (Even) --- */
.homepage-post-card:nth-child(even) .post-frame-wrapper,
.homepage-post-card:nth-child(even) .entry-summary {
	align-self: flex-end;
	text-align: left;
}

.homepage-post-card:nth-child(even) .entry-summary {
	background-color: #b9bfc7; /* Grey */
	color: #000000;
}

/* Excerpt Link Hover Feedback */
a.entry-summary {
	transition: opacity 0.2s ease;
}

a.entry-summary:hover, img.framed-thumbnail.wp-post-image:hover {
	opacity: 0.7;
}

/* ==========================================
   2. HORIZONTAL FLIPPING (RIGHT-SIDE POSTS)
   ========================================== */

/* Mirror mask containers for right-aligned posts */
.homepage-post-card:nth-child(even) .post-frame-wrapper,
.homepage-post-card:nth-child(even) .entry-summary {
	transform: scaleX(-1);
}

/* Un-flip image and text content so they render normally */
.homepage-post-card:nth-child(even) .framed-thumbnail,
.homepage-post-card:nth-child(even) .entry-summary > * {
	transform: scaleX(-1);
}

/* ==========================================
   3. EXCERPT MASK CONTAINER
   ========================================== */

.entry-summary {
	display: block;
	position: relative;
	width: 100%;
	margin-top: .2rem;
	padding: 1.25rem 2.5rem; /* Reduced top/bottom padding for a tighter fit */
	/* min-height: 160px; <-- Removed to let height collapse naturally */
	box-sizing: border-box;
	
	/* SVG Mask Rules */
	-webkit-mask-image: url('assets/svgs/frame-landscape-new.svg');
	mask-image: url('assets/svgs/frame-landscape-new.svg');
	
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.entry-summary p {
	margin: 0;
	line-height: 1.6;
	font-family: Lucile;
}
/* ==========================================
   4. IMAGE MASKS (PORTRAIT VS HORIZONTAL)
   ========================================== */

.post-frame-wrapper {
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
	box-sizing: border-box;
	
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.post-frame-wrapper .frame-link {
	display: block;
	width: 100%;
}

.post-frame-wrapper .framed-thumbnail {
	width: 100%;
	height: auto;
	display: block;
}

/* --- SVG Mask Mappings --- */

/* Horizontal 1 */
.post-frame-wrapper.is-horizontal {
	-webkit-mask-image: url('assets/svgs/frame-landscape-2.svg');
	mask-image: url('assets/svgs/frame-landscape-2.svg');
}

/* Horizontal 2 */
.post-frame-wrapper.is-horizontal-2 {
	-webkit-mask-image: url('assets/svgs/frame-landscape-3.svg');
	mask-image: url('assets/svgs/frame-landscape-3.svg');
}

/* Portrait 1 */
.post-frame-wrapper.is-portrait {
	-webkit-mask-image: url('assets/svgs/frame-portrait.svg');
	mask-image: url('assets/svgs/frame-portrait.svg');
}

/* Portrait 2 */
.post-frame-wrapper.is-portrait-2 {
	-webkit-mask-image: url('assets/svgs/frame-portrait-2.svg');
	mask-image: url('assets/svgs/frame-portrait-2.svg');
}

/* ==========================================
   FEATURED IMAGE FRAME AUTO-SCALING FIX
   ========================================== */

/* Ensure the wrapper collapses directly around the image height */
.post-frame-wrapper {
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
	box-sizing: border-box;
	
	/* Force non-proportional SVG stretching */
	-webkit-mask-size: 100% 100% !important;
	mask-size: 100% 100% !important;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* Ensure the image sets the exact container height */
.post-frame-wrapper .framed-thumbnail {
	width: 100% !important;
	height: auto !important;
	display: block !important;
}

/* ==========================================
   POST DATE STYLING
   ========================================== */

.post-card-date {
	width: 100%;
	text-align: center;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	font-family: Lucile;
	letter-spacing: 0.05em;
	color: #888888; /* Adjust color hex as desired */
}

/* ==========================================
   GALLERY BLOCK STACKED LAYOUT
   ========================================== */

/* Single-column stacked gallery layout */
.wp-block-gallery.columns-1,
.wp-block-gallery {
	display: flex;
	flex-direction: column;
	gap: 2rem; /* Spacing between stacked images */
	width: 100%;
}

.wp-block-gallery.columns-1 .wp-block-image,
.wp-block-gallery .wp-block-image {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
}

/* ==========================================
   GALLERY CAPTION BELOW IMAGE FIX
   ========================================== */

/* Remove absolute positioning & background overlay from gallery captions */
.wp-block-gallery .wp-block-image figcaption,
.wp-block-gallery figcaption {
	position: static !important;
	background: transparent !important;
	color: #000000 !important; /* Adjust text color as desired */
	padding: 0.75rem 0 0 0 !important;
	margin: 0 !important;
	text-align: left !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-size: 1rem;
	line-height: 1.4;
}



.cat-links {
	display: none;
}


