/*
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;
}

/* 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;
}



/*** Custom Code ***/

/* When the class is on the Featured Image (singles & many loops) */
.wp-block-post-featured-image.medium-pastel img {
  box-shadow: rgba(0, 0, 0, 0.16) 0 0.1vw 0.4vw;
}
.wp-block-post-featured-image.medium-acrylic img {
  border-radius: 0.75%;
  box-shadow:
    rgba(0, 0, 0, 0.09) 0 2px 1px,
    rgba(0, 0, 0, 0.09) 0 4px 2px,
    rgba(0, 0, 0, 0.09) 0 8px 4px,
    rgba(0, 0, 0, 0.09) 0 16px 8px,
    rgba(0, 0, 0, 0.09) 0 32px 16px;
}

/* Fallback when only the card (article.wp-block-post) is tagged — common on home */
.wp-block-post.medium-pastel .wp-block-post-featured-image img {
  box-shadow: rgba(0, 0, 0, 0.16) 0 0.1vw 0.4vw;
}
.wp-block-post.medium-acrylic .wp-block-post-featured-image img {
  border-radius: 0.75%;
  box-shadow:
    rgba(0, 0, 0, 0.09) 0 2px 1px,
    rgba(0, 0, 0, 0.09) 0 4px 2px,
    rgba(0, 0, 0, 0.09) 0 8px 4px,
    rgba(0, 0, 0, 0.09) 0 16px 8px,
    rgba(0, 0, 0, 0.09) 0 32px 16px;
}

/* Let lifted shadows spill outside */
.wp-block-post-featured-image { overflow: visible; }

/* Smooth animation for linked featured images */
.wp-block-post-featured-image a img {
  transition: transform 350ms ease, box-shadow 350ms ease, filter 350ms ease;
  will-change: transform, box-shadow;
}

/* Hover / keyboard focus: lift the image slightly */
@media (hover: hover) {
  .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
    transform: translateY(-0.75rem); /* tweak to taste: -0.25rem … -0.5rem */
  }
}

/* Tap feedback on touch devices (optional) */
@media (hover: none) {
  .wp-block-post-featured-image a:active img {
    transform: translateY(-0.3rem);
  }
}

/* Shadow boost on lift — tuned per medium */
.wp-block-post-featured-image.medium-pastel a:is(:hover, :focus-visible) img,
.wp-block-post.medium-pastel .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
  box-shadow: rgba(0, 0, 0, 0.22) 0 0.14vw 0.55vw; /* slightly stronger than your base */
}

.wp-block-post-featured-image.medium-acrylic a:is(:hover, :focus-visible) img,
.wp-block-post.medium-acrylic .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
  box-shadow:
    rgba(0, 0, 0, 0.12) 0 3px 2px,
    rgba(0, 0, 0, 0.12) 0 6px 3px,
    rgba(0, 0, 0, 0.12) 0 12px 6px,
    rgba(0, 0, 0, 0.12) 0 20px 10px,
    rgba(0, 0, 0, 0.12) 0 36px 18px;
}

/* Accessibility: honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wp-block-post-featured-image a img {
    transition: none;
  }
  .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
    transform: none;
  }
}





/* DESKTOP EDITS */
/* Hide on Desktop */
@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
    }
}



/* MOBILE EDITS */
/* Hide on Mobile */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
	
	.padding-for-mobile{
		padding-left:var(--wp--preset--spacing--50) !important;
		padding-right:var(--wp--preset--spacing--50) !important;
	}
	
	.text-center-for-mobile{
		text-align: center;
	}
	
	.contract-letter-spacing {
        letter-spacing: 0rem !important;
    }
    .contract-letter-spacing * {
        letter-spacing: 0rem !important; /* span inside the title */
    }
}



/* Collections grids – keep them centred and full-width on narrow viewports */
.collections-grid {
  width: 100%;
  box-sizing: border-box;
}

/* Optional: force single column on very small screens */
@media (max-width: 600px) {
  .collections-grid {
    grid-template-columns: 1fr !important;
  }
}



/* FADE IN ELEMENTS ON LOAD */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

img {
    opacity: 0;
}

img.loaded {
    animation: fadeIn 0.6s ease forwards;
}

p, h1, h2, h3, h4, h5, h6, hr, ul, li, blockquote, summary {
    animation: fadeIn 0.6s ease forwards;
}

/* FADE OUT ELEMENTS ON EXIT */
body.page-exit {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}