/**
Theme Name: Kiely Design 2027
Author: Kiely Design
Author URI: https://kielydesign.com
Description: twentytwentyfive child theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kd-2027
Template: twentytwentyfive
*/

/* /*----------------------------------------------------------- 
Page load effect
-------------------------------------------------------------- */

/* Initial hidden state */
body {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Fade in when loaded */
body.page-loaded {
    opacity: 1;
}

/*----------------------------------------------------------- 
/* Keep footer at bottom on short pages
-------------------------------------------------------------- */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

/*--------------------------------------------------------------
# Navigation Header
-------------------------------------------------------------- */

/* Set argument for solid or transparent header */
header.wp-block-template-part:not(.nav-soild) {
    background: transparent;
}

/* Transparent header */
header.wp-block-template-part {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0);
    left: 0;
    width: 100%;
    z-index: 9999;

    background: transparent;

    transition:
        transform 0.4s ease-in-out,
        background 0.8s ease-in-out,
        box-shadow 0.8s ease-in-out;
}

/* Hidden on scroll down */
header.wp-block-template-part.is-hidden {
    transform: translateY(-100%);
}

/* Scrolled state (glass effect) */
header.wp-block-template-part.is-scrolled {
    background: #1d2529;
}


/* Solid header (not transparent on light backgrounds)  */
header.wp-block-template-part.nav-solid {
    background: #1d2529;
}

/* Header Navigation - Current Menu Item Styles and hover
------------------------------------------------------------------------------------- */

/* Wordpress currently does not support this
.wp-block-navigation__responsive-container .current-menu-item>a,
.wp-block-navigation__responsive-container .current-menu-ancestor>a,
.wp-block-navigation__responsive-container .current_page_item>a,
.wp-block-navigation__responsive-container .current_page_ancestor>a {
    color: #EDF669 !important;
}

/* Add orange hover to navigation */
.wp-block-navigation a {
    transition: color 0.2s ease;
}
.wp-block-navigation a:hover {
    color: #EDF669 !important;
    text-decoration: none;
}


/*--------------------------------------------------------------
# Accesability - Turn off the focus border
-------------------------------------------------------------- */

input:focus,
textarea:focus {
    outline: none;
    /* Removes the default outline */
    border: none;
    /* Removes the border as well, if desired */
}

button:focus {
    outline: none;
    /* Removes the default outline */
}

a:focus {
    outline: none;
    /* Removes the default outline */
}

/* Remove focus outlines for submenu items in all browsers */
header.wp-block-template-part .wp-block-navigation-submenu:focus,
header.wp-block-template-part .wp-block-navigation-submenu:focus-within,
header.wp-block-template-part .wp-block-navigation-submenu a:focus,
header.wp-block-template-part .wp-block-navigation-submenu a:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* Safari-specific reset (works for macOS and iOS Safari) */
@supports (-webkit-touch-callout: none) {

    header.wp-block-template-part .wp-block-navigation-submenu:focus,
    header.wp-block-template-part .wp-block-navigation-submenu:focus-within,
    header.wp-block-template-part .wp-block-navigation-submenu a:focus,
    header.wp-block-template-part .wp-block-navigation-submenu a:focus-within {
        outline: none !important;
        box-shadow: none !important;
    }
}


/* Google Rexaptach and Forms - hide badge
------------------------------------------------------------- */
.grecaptcha-badge {
    visibility: hidden !important;
}


/*--------------------------------------------------------------
# Global Stle Adjustments
-------------------------------------------------------------- */

.single h1::after,
.page h1::after,
.archive h1::after,
.post-type-archive h1::after {
	content: "_";
}


/* Hide on Mobile - IMPORTANT WP uses device not break point ---*/
@media (max-width: 781px) {

    .hide-mobile {
        display: none !important;
    }

}

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

/* Add rounded corners universially --------------------------*/

 .border-radius-10 {
    border-radius: 8px !important;
 }

 .wp-block-image img {
    border-radius: 8px;
 }

.wp-block-embed.is-type-video,
.gs-video-element{
    border-radius: 8px!important;
    overflow: hidden!important;
 }

 /* Use if a larger radius and want to make smaller on mobile
 @media only screen and (max-width: 576px) {
    .wp-block-image img {
        border-radius: 10px !important;
    }

    .wp-block-embed.is-type-video {
        border-radius: 10px !important;
    }
 }

 */

 .wp-block-image.alignfull img{
    border-radius: 0px !important;
 }

 .wp-block-image.delete-radius img{
      border-radius: 0px !important;
  }


/* Buttons ----------------------------------------------------- */

  .wp-block-button.is-style-outline .wp-block-button__link {
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #e4354b;
    border-color: #e4354b;
    color: #fff;
}

/* Accordian ----------------------------------------------------- */

/* Remove underline */
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none !important;
}

/* Hover state */
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
	color: #EDF669;
}

/* Footer Adjustments
--------------------------------------------------------------- */
footer {
    margin-block-start: 0 !important;
}


/*--------------------------------------------------------------
# Group Block Parallax
-------------------------------------------------------------- */

/* Init + Remove scale limits on mobile */
.kd-parallax,
.kd-parallx-up {
  background-size: 100% auto !important;
  background-repeat: no-repeat !important;
}

/*--------------------------------------------------------------
# Cover Block Parallax
-------------------------------------------------------------- */

.kd-parallax-cover {
    overflow: hidden;
}

.kd-parallax-cover .wp-block-cover__image-background {

    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Cover Block Parallax + Scale -------------------------------*/

.kd-parallax-cover-scale {
    overflow: hidden;
}

.kd-parallax-cover-scale .wp-block-cover__image-background {
    will-change: transform;
    transform: translateZ(0) scale(1.02);
    backface-visibility: hidden;
}

/* Fix pushing the website to the left */
.kd-parallax-cover-scale {
    overflow: clip;
    position: relative;
}

.kd-parallax-cover-scale .wp-block-cover__image-background {
    object-position: center center;
    transform-origin: center center;
}


/*--------------------------------------------------------------
 Home 
 -------------------------------------------------------------- */

 /* Featured Posts Cinematic Crop */
.cinematic-crop {
    aspect-ratio: 2.35 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-crop img,
.cinematic-crop .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------
Blog Exploration Single image
-------------------------------------------------------------- */

/* Photo Stack */

.kd-photo-stack {
    position: relative;
    display: inline-block;
}

.kd-photo-stack img {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.10);
}

/* single “back photo” layer */
.kd-photo-stack::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1d2529;
    transform: rotate(-3deg) translate(4px, 10px);
    z-index: 1;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.10);
    opacity: 0.9;
    border: 12px solid white;
}


/*--------------------------------------------------------------
# Index and Archive Index
-------------------------------------------------------------- */
/* Base state (NO transform on outer post) */
.wp-block-post
.kd-poster-block {
	position: relative;
	overflow: visible;
}

/* Inner card becomes the animated element */
.kd-blog-index-box,
.kd-project-index-box,
.kd-poster-block {
	position: relative;
	transform: scale(1) rotate(0deg);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	will-change: transform;
}

/* Hover triggers inner box only */
.wp-block-post:hover .kd-blog-index-box,
.wp-block-post:hover .kd-project-index-box,
.kd-poster-block:hover {
	transform: scale(1.02) rotate(0deg);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

/* Rotation variation */
.wp-block-post:nth-child(2n):hover .kd-blog-index-box {
	transform: scale(1.02) rotate(0.6deg);
}

.wp-block-post:nth-child(3n):hover .kd-blog-index-box {
	transform: scale(1.02) rotate(-0.5deg);
}

.wp-block-post:nth-child(5n):hover .kd-blog-index-box {
	transform: scale(1.02) rotate(0.3deg);
}

/*--------------------------------------------------------------
# Category and Tags
-------------------------------------------------------------- */

/* Tag Pill Style */
.taxonomy-category  {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.taxonomy-category a {
	display: inline-block;
	padding: 8px 15px;
	border-radius: 999px;
    border: 1px solid black;
	background: none;
	color: black;
	text-decoration: none;
    font-size: .8rem;
    font-weight: 400;
	transition: background 0.25s ease, color 0.25s ease;
}

.taxonomy-category a:hover {
	background: #e4354b;
	color: #ffffff;
	text-decoration: none;
    border-color: #e4354b;
}

/* Category Pill Style ------------------------ */
.taxonomy-portfolio_category  {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.taxonomy-portfolio_category a {
	display: inline-block;
	padding: 8px 15px;
	border-radius: 999px;
    border: 1px solid white;
	background: none;
	color: #fff;
	text-decoration: none;
    font-size: .8rem;
      font-weight: 400;
	transition: background 0.25s ease, color 0.25s ease;
}

.taxonomy-portfolio_category a:hover {
	background: #EDF669;
	color: black;
	text-decoration: none;
    border-color: #EDF669;
}

/* Project page category style adjustments -----------------*/
.project-page-portfolio-category.taxonomy-portfolio_category a {
    color: black;
    border-color: black;
}

.project-page-portfolio-category.taxonomy-portfolio_category a:hover {
    border-color: black;
}


/* Archive active term ----------------------------*/

.wp-block-term-template {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.wp-block-term-template > * {
	margin: 0;
}

.wp-block-term-name {
    margin: 0;
}

body.term-entertainment a[href*="/entertainment/"],
body.term-lifestyle a[href*="/lifestyle/"],
body.term-sport a[href*="/sport/"],
body.term-civic a[href*="/civic/"] {
	background: #EDF669;
	color: black;
	text-decoration: none;
    border-color: #EDF669;
}

body.category-illustration a[href*="/illustration/"],
body.category-typography a[href*="/typography/"] {
	background: #e4354b;
	color: white;
	text-decoration: none;
    border-color: #e4354b
}

/* -------------------------------------------------------------
Spectra Blocks PLugin
---------------------------------------------------------------*/

.slick-dots {
	margin-top: 0 !important;
	top: -20px !important;
}

.wp-block-uagb-post-carousel {
    margin-bottom: -20px !important;
    padding: 0 !important;
}

.slick-slide .slick-slide-inner {
	display: flex;
	flex-direction: column;
}

.slick-slide img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
    border-radius: 8px;
}

.slick-slide .entry-title,
.slick-slide .uagb-post__title {
	margin-top: 12px;
    padding-left: 20px;
    height: 45px;
}

.slick-slide .entry-title::before,
.slick-slide .uagb-post__title::before {
	content: "+";
	color: #e4354b;
	margin-right: 6px;
	display: block;
    position: absolute;
    font-size: 1.2em;
    margin-left: -20px;
    margin-top: -4px;
}

.uagb-post-carousel .slick-slide {
	padding: 0 !important;
}

.uagb-post-carousel .slick-list {
	margin: 0 !important;
}


/* Image scale (fix your width issue) */
.slick-slide img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 6px 6px rgba(0, 0, 0, 0.14);
}

.slick-slide:hover img {
	transform: scale(0.98);
	box-shadow: none;
}

/* Spectra / UAGB Carousel Overflow Fix (Slick)
DELETE WHEN REPLACE
-------------------------------------------------------------- */

/* Global safety net for WP theme + transforms */
html,
body {
    overflow-x: clip;
    overflow-x: hidden;
}

/* -------------------------------------------------------------
Animate on + JavaScript
-------------------------------------------------------------- */

/* Base shared settings ---------------------------------- */

.animate-slide-up,
.animate-slide-down,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
    opacity: 0;
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out,
        filter 0.7s ease-out;
}

/* Slide Animations ---------------------------------- */

.animate-slide-up {
    transform: translate3d(0, 40px, 0);
}

.animate-slide-down {
    transform: translate3d(0, -40px, 0);
}

.animate-slide-left {
    transform: translate3d(40px, 0, 0);
}

.animate-slide-right {
    transform: translate3d(-40px, 0, 0);
}

.animate-scale {
    transform: translate3d(0, 10px, 0) scale(1.1);
}

/* Active state ---------------------------------- */

.in-view.animate-slide-up,
.in-view.animate-slide-down,
.in-view.animate-slide-left,
.in-view.animate-slide-right,
.in-view.animate-scale {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}




/* Animate Spin In ---------------------------------- */
.animate-spin-in {
    opacity: 0;
    display: block;
    transform: rotate(-220deg);
    transform-origin: center center;
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.animate-spin-in.in-view {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Animate FLicker ---------------------------------- */

.animate-flicker {
    opacity: 0;
}

.animate-flicker.in-view {
    animation: glitchFlicker 0.5s linear forwards;
}

@keyframes glitchFlicker {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    20%  { opacity: 0.2; }
    30%  { opacity: 1; }
    40%  { opacity: 0; }
    55%  { opacity: 1; }
    70%  { opacity: 0.3; }
    85%  { opacity: 1; }
    100% { opacity: 1; }
}

/* Delays ---------------------------------- */

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; animation-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; animation-delay: 0.55s; }
