/*
Theme Name: Eneton
Theme URI: https://e-neton.pl
Author: Eneton
Author URI: https://e-neton.pl
Description: Eneton Custom WordPress child theme based on Twenty Twenty-Five.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: eneton
Tags: 
*/



/* Płynne przejście dla wszystkich linków */
a { transition: all 0.3s ease; }


/* ANIMOWANE UNDERLINE LINKÓW Wszystkie linki poza nawigacją */

:root {
    --link-underline-color: currentColor;
}

.wp-site-blocks a:not(.wp-element-button):not(.wp-block-navigation a) {
    text-decoration: none;
    background-image: linear-gradient(
        var(--link-underline-color),
        var(--link-underline-color)
    );
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 1px;
    transition: background-size 0.7s ease;
}

/* Linia chowa się symetrycznie do środka */
.wp-site-blocks a:not(.wp-element-button):not(.wp-block-navigation a):hover {
    background-size: 0% 1px;
}

/* Dostępność */
@media (prefers-reduced-motion: reduce) {
    .wp-site-blocks a:not(.wp-element-button):not(.wp-block-navigation a) {
        transition: none;
    }
}


/* Twenty Twenty-Five - menu mobilne od 1024px zamiast domyślnego 600px */

@media (max-width: 1300px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

}

@media (min-width: 1301px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
    width: auto;
    position: static;
    height: auto;
    background-color: transparent;
  }

}


/* zmiana na widok pionowy już przy 1024px zamiast domyślnego 782px */

@media screen and (max-width: 1024px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }
  
  .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}



/* MENU GŁÓWNE */

@media (min-width: 1300px) {


/* MENU GŁÓWNE */
.main-menu .wp-block-navigation .wp-block-navigation-item__content {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 0;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Złote podkreślenie */
.main-menu .wp-block-navigation .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 2px;
    background: #b89a62;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* HOVER */
.main-menu  .wp-block-navigation .wp-block-navigation-item:hover > a,
.main-menu  .wp-block-navigation .wp-block-navigation-item__content:hover {
    color: #b89a62;
}

/* Animacja podkreślenia po najechaniu */
.main-menu .wp-block-navigation .wp-block-navigation-item:hover > a::after {
    transform: scaleX(1);
}

/* AKTYWNA STRONA */
.main-menu .wp-block-navigation .current-menu-item > a {
    color: #b89a62;
}

/* Podkreślenie aktywnego linku */
.main-menu .wp-block-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Płynne przejście */
.main-menu .wp-block-navigation .wp-block-navigation-item__label {
    transition: color 0.3s ease;
}

/* Dostępność – klawiatura */
.main-menu .wp-block-navigation a:focus-visible {
    outline: 2px solid #b89a62;
    outline-offset: 4px;
}



}



/* podmenu */

@media (min-width: 1024px) {

.wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    transform: translateY(10px);
    transform-origin: top center;
}

/* Podmenu po otwarciu */
.wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container {
    transform: translateY(0);
}

/* Płynne pojawianie się pozycji podmenu */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    transition: color 0.3s ease, background-color 0.3s ease;
}

}

/* MENU stopka nav-stopka */

ul.nav-stopka {width: 100%;}
ul.nav-stopka li { width: 100%; text-align: center;}
ul.nav-stopka li a { width: 100%; border-bottom: 1px solid var(--wp--preset--color--accent-4); padding-bottom: 5px; }
ul.nav-stopka li a:hover { border-bottom: 1px solid var(--wp--preset--color--accent-2); text-decoration: none; color: var(--wp--preset--color--accent-2)!important; }
ul.nav-stopka li.current-menu-item {color: var(--wp--preset--color--accent-2);}


/* Menu mobilne */
.is-menu-open ul li.current-menu-item a { 
    background-color: var(--wp--preset--color--accent-2);
    padding: 0 10px!important;
}









/* block-makeiteasy-slider */


 .width-50 {max-width: 700px;}


 
 /* Elementy z klasą .anim */
.swiper-slide .anim {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 1.6s ease;
}

/* Wejście — aktywny slajd */
.swiper-slide-active .anim {
  opacity: 1;
  transform: translateY(0);
}

/* Wyjście — nieaktywny slajd */
.swiper-slide:not(.swiper-slide-active) .anim {
  opacity: 0;
  transform: translateY(40px);
}



/* Kontener pagination */
.swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  bottom: 20px !important;
}

/* Nieaktywne kropki */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 10px;
  background: #ffffff;
  opacity: 0.45;
  transition: all 0.4s ease;
}

/* Aktywna kropka */
.swiper-pagination-bullet-active {
  width: 48px;
  background: var(--wp--preset--color--accent-2);
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}



/* Galeria Masonry */

/* Podpis na zdjęciu */
.psgal .msnry_items {
    position: relative;
    overflow: hidden;
}

.psgal .msnry_items > a {
    display: block;
    line-height: 0;
}

.psgal .msnry_items .msnry_thumb {
    display: block;
    width: 100%;
    height: auto;
}

.psgal .msnry_items .photoswipe-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    margin: 0;
    padding: 14px 12px;
    color: #fff;
    background-color: #00000079 ;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    width: 50px;
}


/* EFEKT HOVER GALERII MASONRY */


/* Zdjęcie */
.psgal .msnry_items {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.psgal .msnry_items > a {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

/* Delikatne powiększenie zdjęcia */
.psgal .msnry_items .msnry_thumb {
    transition: transform 0.5s ease;
}

/* Ciemna nakładka */
.psgal .msnry_items > a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Okrąg z plusem */
.psgal .msnry_items > a::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;

    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 50%;

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

    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;

    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Efekt po najechaniu */
@media (hover: hover) {
    .psgal .msnry_items:hover .msnry_thumb {
        transform: scale(1.06);
    }

    .psgal .msnry_items:hover > a::before {
        opacity: 1;
    }

    .psgal .msnry_items:hover > a::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Podpis nad nakładką */
.psgal .msnry_items .photoswipe-gallery-caption {
    z-index: 5;
}

/* Urządzenia dotykowe – bez wymuszonego hover */
@media (hover: none) {
    .psgal .msnry_items > a::before,
    .psgal .msnry_items > a::after {
        display: none;
    }
}

/* tekst na środku w lightbox */
.pswp__caption__center { text-align: center;}


/* ukrycie przycisku share na nakładce lightbox */
.pswp__button.pswp__button--share { display: none;}



/* zmiana skórki lightbox na ciemne */


/* Czarne tło domyślnego lightboxa WordPress */
.wp-lightbox-overlay .scrim {
    background-color: rgba(0, 0, 0, 0.9)!important;
}

/* Białe ikony i przyciski nawigacji */
.wp-lightbox-overlay {
    color: #fff;
}

.wp-lightbox-overlay button {
    color: #fff;
}
