/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


.editor-styles-wrapper {
  --content-width: 840px !important;
}

/*main*/
.home .my-work-row .gb-shape svg
 {
    width: 1.2em;
    height: 1.2em;
}

.my-breadcrumbs {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--gb-container-width);
  padding: 5px 20px;
  background-color: var(--accent-4);
  background-image: linear-gradient(50deg,var(--accent-4) 85%,var(--base-3) 85%);	
}

.my-breadcrumbs p {
	margin-bottom: 2px;
}

/*.home .my-breadcrumbs {
	display: none;
}*/

.my-tag-row a {
	border: 1px solid #e7e7e7;
	padding: 5px 10px;
	margin: 5px;
}

.my-tag-row:before {
	content: 'Рубрики: ';
}



/*sticky navigation*/
.sticky-enabled .main-navigation.is_stuck {	
  background-color: #fffffff7;
}


/* Кнопка "вгору" */
a.generate-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid color-mix(in srgb, var(--contrast) 12%, transparent);
  /*border-radius: 999px;*/

  background: transparent;
  color: var(--contrast);

  font-size: 20px;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;  
}


a.generate-back-to-top:hover {
  color: var(--base-3);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent);	
}

.gp-icon svg {  
  top: 0; 
}



/* Вимкнути GP back-to-top на single */
body.single .generate-back-to-top {
  display: none !important;
}



.p-1em p {
	margin-bottom: 0.9em;
}




/* ==========================================================
   PURE FLOAT (no scroll, no reveal)
   ========================================================== */

@keyframes pure-float {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* базовий */
.float {
  animation: pure-float 3s ease-in-out infinite;
}

/* варіації */
.float--slow  { animation-duration: 5s; }
.float--fast  { animation-duration: 2s; }
.float--small { animation-name: pure-float-small; }

@keyframes pure-float-small {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}


@media (prefers-reduced-motion: reduce) {
  .float,
  .float--slow,
  .float--fast,
  .float--small {
    animation: none !important;
  }
}


/*swiper*/




.gb-swiper-gallery {
  max-width: 100%;
  margin: 2rem auto 1rem auto;
  padding: 0 1rem;
}

.gb-swiper-gallery .swiper-slide {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.gb-swiper-gallery .swiper-slide:hover {
  transform: scale(1.02);
}
.gb-swiper-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Контейнери навігації */
.gb-swiper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}



.swiper-button-prev,
.swiper-button-next {
 /* position: static !important; *//* видаляє абсолютне позиціонування Swiper */
  width: 36px;
  height: 36px;
  color: var(--accent, #0073e5);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  background: #fffffff2 !important;
  padding: 6px !important;
  border-radius: 9px;	
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
}

/* Пагінація по центру */
.swiper-pagination {
  position: static !important;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.swiper-pagination-bullet {
  background-color: var(--accent, #0073e5);
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

 
.gb-swiper-gallery .swiper-slide {
  display: flex;
  align-items: stretch;
  height: 300px; /* або будь-яка інша максимальна висота */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
   box-sizing: border-box;	
}

.gb-swiper-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gb-swiper-gallery h4 {
  font-size: 20px;
  margin-top: 12px;
  position: sticky;
  bottom: 0;
  background: #fff;
  margin-bottom: 0;
  padding: 10px;
}

.swiper-pagination-bullet {
      width: 20px !important;
      height: 20px !important;
      text-align: center;
      line-height: 18px;
  	  font-size: 14px;
      color: var(--base-3);
      opacity: 1 !important;
      background: var(--accent) !important;
	  border: 1px solid var(--accent);
    }

.swiper-pagination-bullet:hover {
	 background: var(--accent-2) !important;
	 border: 1px solid var(--accent-2);
}

.swiper-pagination-bullet-active {
      color: var(--contrast) !important;
      background: var(--accent-4) !important;
	   border: 1px solid var(--accent-2);
    }

:root {
  --swiper-theme-color: var(--accent) !important;
}

/*поточне меню*/
/*.current_page_item, menu-item-object-custom {
	border-bottom: 1px solid red;
}*/

/* Активний пункт меню */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--contrast-3);
    font-weight: 600;
    border-bottom: 2px solid currentColor;
}

.main-navigation .current-menu-item > a::after {
    content: "•";
    margin-left: 6px;
	color: var(--accent);
}

/*site*/
.site-description {
  color: var(--accent);
  text-align:center;	
}

.site-branding:hover {
	opacity:0.38;
	
}

/* футер */
.gbp-footer .mylinkfooter a {
  font-size: 1rem;
}

/*blog*/
.no-marker li {
	list-style: none;
}

.no-marker {
	margin: 0 0 1em 1em;
}

.myperson-article a {
	color:inherit;
}

.myperson-article a:hover {
	color: var(--accent);
}


/*сайдбар*/

.no-marker li {
	list-style: none;
}

.no-marker {
	margin: 0 0 1em 1em;
}

.myperson-article a {
	color:inherit;
}

.myperson-article a:hover {
	color: var(--accent);
}

.inside-right-sidebar li {
	margin-bottom: 0.5rem;
}

.inside-right-sidebar .mysidebar-fixed hr {  
  margin-bottom: 20px;
  margin-top: 15px;
}


.inside-right-sidebar {
	height:100%;
}

/* Sidebar wrapper */
.mysidebar-fixed {
  position: sticky;
  top: 120px; /* відступ від верху */
}

/* Вимикаємо sticky на мобільних */
@media (max-width: 767px) {
  .mysidebar-fixed {
    position: static;
  }
}


.mysidebar-fixed a {
	color: var(--contrast-2);
}

.mysidebar-fixed a:hover {
	color: var(--accent);
}



/* ===============================
   Mobile: якщо є TOC mobile-panel
   =============================== */
@media (max-width: 991px) {

  /* якщо на сторінці присутній TOC mobile-panel */
  body:has(#toc-mobile) {

    /* ховаємо правий сайдбар */
    #right-sidebar {
      display: none !important;
    }

    /* контент на всю ширину */
    .content-area,
    .site-main {
      width: 100% !important;
      max-width: 100% !important;
    }

    /* прибираємо можливі відступи від layout */
    .inside-article,
    .inside-page {
      margin-right: 0 !important;
    }
  }
}


@media (max-width: 991px) {

  body.has-toc-mobile #right-sidebar {
    display: none !important;
  }

  body.has-toc-mobile .content-area,
  body.has-toc-mobile .site-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.has-toc-mobile .inside-article,
  body.has-toc-mobile .inside-page {
    margin-right: 0 !important;
  }
}



/* category*/
.mywidget_categories .current-cat > a {
    font-weight: 600;
    text-decoration: underline;
}

.taxonomy-description {
	border: 1px solid #f0f0f0;
  	padding: 8px;
	border-radius: 3px; 
}

.cat-icon {
    margin-right: 5px;
    font-size: 0.95em;
    vertical-align: middle;	
}



