/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    https://example.com/
 Description:  Child theme for Twenty Twenty-Five
 Author:       ignaskuria.lt
 Author URI:   https://example.com
 Template:     twentytwentyfive
 Version:      1.0.0
*/

/* Čia rašyti savo CSS pakeitimus */


/* ******************************* */
/* Masonry stilius Gutenberg galerijai */
/* ******************************* */
.wp-block-gallery.portfolio-gallery.is-layout-flex.has-nested-images {
  display: block !important;
  column-count: 3;
  column-gap: 1rem;
}

.wp-block-gallery.portfolio-gallery.is-layout-flex.has-nested-images figure.wp-block-image {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 1rem !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .wp-block-gallery.portfolio-gallery.is-layout-flex.has-nested-images {
    column-count: 2 !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .wp-block-gallery.portfolio-gallery.is-layout-flex.has-nested-images {
    column-count: 2 !important;
  }
}

/* Lightbox bazė */
.ik-lightbox { 
  display: none; position: fixed; inset: 0; 
  background: rgba(0,0,0,.8); 
  justify-content: center; align-items: center; 
  z-index: 9999;
}
.ik-lightbox.is-open { display: flex; }

.ik-lightbox__img { 
  max-width: 90vw; max-height: 90vh; 
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.ik-lightbox__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 0; color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer;
}

.ik-lightbox__prev,
.ik-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 8px;
  user-select: none;
}

.ik-lightbox__prev { left: 20px; }
.ik-lightbox__next { right: 20px; }

/* Kad mobiliajame rodyklės nesispaustų ant swipe gestų */
@media (max-width: 768px) {
  .ik-lightbox__prev,
  .ik-lightbox__next { display: none; }
}

/* Kad ant galerijos matytųsi, jog galima spausti */
.portfolio-gallery img { cursor: zoom-in; }


/* ******************************* */
/* Contact Form 7 bendras stilius */
/* ******************************* */
.wpcf7 form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

/* Label */
.wpcf7 form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  display: block;
}

/* Teksto įvestys ir textarea */
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0px;
  font-size: 1rem;
  background-color: #f1f1f1;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0 !important;
}

.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: #333; 
  box-shadow: 0 0 0 2px rgba(58,110,165,0.2);
  outline: none;
  border-radius: 0px;
}

/* Contact Form 7 – placeholder stilius */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #D2D3D9 !important;  
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Submit mygtukas */
.wpcf7 input[type="submit"] {
  background-color: #111111;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 0px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.wpcf7 form p {
  margin: 0 0 0.75rem 0; /* sumažink pagal poreikį */
}

.wpcf7 input[type="submit"]:hover {
  background-color: #111111;
  transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

.wpcf7 form.sent .wpcf7-response-output {
    border:none;
}

@media (max-width: 768px) {
.wpcf7 form {
  padding-right:30px;
}
}

.blog .wp-site-blocks,
.archive .wp-site-blocks {
  max-width: 1224px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.blog .wp-block-group.has-global-padding:first-of-type,
.archive .wp-block-group.has-global-padding:first-of-type {
  padding-top: 0 !important; /* sumažink pagal poreikį */
}

.wp-block-group.alignfull.has-global-padding {
    padding-top: 0 !important; /* sumažink pagal poreikį */
}

:where(.wp-site-blocks *:focus) {
    outline: none !important;
}

@media (max-width: 768px) {
    .wp-block-image img {
        max-height:400px;
    }
}


/* =============================== */
/* ===== MOBILE HEADER ONLY ====== */
/* =============================== */
@media (max-width: 768px) {
  /* Slepiam WP default navigation mobilui */
  .wp-block-navigation, 
  .wp-block-navigation__responsive-container {
    display: none !important;
  }

  /* Header konteineris */
  .custom-header { position: relative; z-index: 100; }
  .custom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    gap: 16px;
    background: #fff;
  }

  /* Logo dydis */
  .custom-header-inner .wp-block-site-logo img {
    max-width: 120px;
    height: auto;
    display: block;
  }

  /* Hamburger */
  .hamburger {
    width: 32px;
    height: 24px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 101;
  }
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  /* Overlay meniu */
  .nav-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }
  .nav-overlay.open { max-height: 60vh; }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
    gap: 14px;
  }
  .nav-list a {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: #000;
  }
}

/* =============================== */
/* ===== DESKTOP HEADER ONLY ===== */
/* =============================== */
@media (min-width: 769px) {
  /* Slėpti custom hamburgerį + overlay */
  #hamburger,
  #customNav {
    display: none !important;
  }

  /* WP nav normaliai rodosi */
  .wp-block-navigation__container {
    justify-content: flex-end;
  }
}

.wp-block-navigation__container .current-menu-item > a,
.wp-block-navigation__container .current_page_item > a,
.wp-block-navigation__container .current-menu-ancestor > a,
.nav-list li.current-menu-item > a,
.nav-list li.current_page_item > a,
.nav-list li.current-menu-ancestor > a {
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}


