/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

.links-ml-left li {
	margin-left: 8px !important;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* Projects Grid Responsive */
.projects-grid {
	display: grid;
	gap: 30px;
	margin-bottom: 40px;
}

.project-item {
	display: flex;
	flex-direction: column;
	gap: 15px;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s;
	padding: 6px;
}

.project-item:hover {
	transform: translateY(-4px);
}

.project-image img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-fields svg {
	flex-shrink: 0;
	color: #666;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px;
	}
}

/* Mobile: 1 column */
@media (max-width: 768px) {
	.projects-grid {
		grid-template-columns: 1fr !important;
		gap: 20px;
	}

	.project-item h3 {
		font-size: 20px !important;
	}
}

.field-icon {
	flex-shrink: 0;
	min-width: 16px;
	min-height: 16px;
	width: 16px;
	height: 16px;
	color: #666;
	margin-top: 2px;
}

/* Single Project Details */
.single-project-details {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Images Grid - Side by Side */
.project-images-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.project-main-image img,
.project-additional-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.project-main-image img:hover,
.project-additional-image img:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* If only one image exists, make it full width */
.project-images-grid:has(.project-main-image:only-child) {
	grid-template-columns: 1fr;
}

/* Lightbox Styles */
.lightbox-overlay {
	display: none;
	position: fixed;
	z-index: 9999;
	padding: 20px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.95);
	animation: fadeIn 0.3s;
}

.lightbox-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lightbox-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	animation: zoomIn 0.3s;
}

@keyframes zoomIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: #fff;
	font-size: 50px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s;
	line-height: 1;
	user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
	color: #ccc;
}

/* Project Info Section */
.project-info-section {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.project-info-title {
	margin: 0 0 20px 0;
	font-size: 28px;
	color: #333;
}

.project-info-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 30px;
}

.project-info-field {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: white;
	border-radius: 6px;
}

.project-info-field .field-icon {
	flex-shrink: 0;
	min-width: 20px;
	min-height: 20px;
	width: 20px;
	height: 20px;
	color: #666;
	margin-top: 2px;
}

.project-info-field .field-content {
	flex: 1;
	line-height: 1.6;
}

.project-info-field strong {
	color: #333;
	display: inline-block;
	min-width: 140px;
}

/* Full Description */
.project-full-description {
	padding-top: 20px;
	border-top: 2px solid #e0e0e0;
}

.project-full-description h3 {
	margin: 0 0 15px 0;
	font-size: 24px;
	color: #333;
}

.project-full-description p {
	line-height: 1.8;
	color: #555;
	margin-bottom: 15px;
}

/* Tablet: Keep 2 columns for images */
@media (max-width: 1024px) {
	.single-project-details {
		padding: 15px;
	}

	.project-info-section {
		padding: 20px;
	}
}

/* Mobile: Stack images vertically */
@media (max-width: 768px) {
	.project-images-grid {
		grid-template-columns: 1fr !important;
		gap: 15px;
		margin-bottom: 30px;
	}

	.single-project-details {
		padding: 10px;
	}

	.project-info-section {
		padding: 20px 15px;
	}

	.project-info-title {
		font-size: 24px;
	}

	.project-info-field {
		flex-direction: column;
		gap: 8px;
	}

	.project-info-field .field-icon {
		margin-top: 0;
	}

	.project-info-field strong {
		display: block;
		min-width: auto;
	}

	.project-full-description h3 {
		font-size: 20px;
	}

	.lightbox-close {
		top: 10px;
		right: 20px;
		font-size: 40px;
	}

	.lightbox-content {
		max-width: 95%;
	}

	.field-content {
		align-items: center;
		justify-content: center;
		display: flex;
		flex-direction: column;
	}
}

/* Extra small phones */
@media (max-width: 480px) {
	.project-images-grid {
		gap: 10px;
	}

	.project-info-section {
		padding: 15px 10px;
	}

	.project-info-fields {
		gap: 12px;
	}

	.lightbox-overlay {
		padding: 10px;
	}
}

.wp-block-post-featured-image {
	display: none
}

.wp-block-site-title {
	white-space: nowrap;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
	
	.wp-grow {
		flex-grow: 1;
	}
}


