/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* =====================================
   M-AUTO — GALERIA WYDARZEŃ
===================================== */

.mauto-gallery-page {
  background: #111214;
  color: #f5f5f5;
  min-height: 70vh;
  font-family: Inter, sans-serif;
  width: 100%;
}

.mauto-gallery-container {
    box-sizing: border-box;
    width: calc(100% - 48px);
    margin-inline: auto;
}

@media (max-width: 767px) {
    .mauto-gallery-container {
        width: calc(100% - 32px);
    }
}

/* Nagłówek archiwum i wydarzenia */

.mauto-gallery-eyebrow {
  color: #ffd400;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.mauto-gallery-banner h1 {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 16px;
}

.mauto-gallery-banner p {
  color: #bdbdbd;
}

/* Filtrowanie po latach */

.mauto-gallery-content {
  padding: 56px 0 80px;
}

.mauto-year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.mauto-year-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: #252525;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #444444;
  border-radius: 6px;
  font-weight: 600;
  transition: .2s ease;
}

.mauto-year-filters a:hover,
.mauto-year-filters a.active {
  background: #ffd400;
  color: #101010;
  border-color: #ffd400;
}

/* Siatka wydarzeń */

.mauto-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Pojedyncza karta */

.mauto-event-card {
  background: #202020;
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform .25s ease,
    border-color .25s ease;
}

.mauto-event-card:hover {
  transform: translateY(-5px);
  border-color: #ffd400;
}

.mauto-event-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mauto-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.mauto-event-card:hover img {
  transform: scale(1.04);
}

.mauto-no-image {
  display: grid;
  place-items: center;
  height: 100%;
  background: #303030;
  color: #ffd400;
  font-weight: 800;
  font-size: 24px;
}

.mauto-event-body {
  padding: 22px;
}

.mauto-event-body h2 {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.mauto-event-body h2 a {
  color: #ffffff;
  text-decoration: none;
}

.mauto-event-body p {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.mauto-event-link {
  color: #ffd400;
  font-weight: 700;
  text-decoration: none;
}

.mauto-event-link:hover,
.mauto-event-body h2 a:hover {
  color: #e6bf00;
}

/* Paginacja */

.mauto-pagination {
  margin-top: 44px;
  text-align: center;
}

.mauto-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mauto-pagination .page-numbers {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #555555;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
}

.mauto-pagination .page-numbers.current,
.mauto-pagination .page-numbers:hover {
  background: #ffd400;
  border-color: #ffd400;
  color: #101010;
}

/* Pojedyncze wydarzenie */

.mauto-single-event {
  padding: 48px 0 80px;
}

.mauto-back-link,
.mauto-single-bottom a {
  display: inline-block;
  color: #ffd400;
  font-weight: 700;
  text-decoration: none;
}

.mauto-back-link {
  margin-bottom: 28px;
}

.mauto-single-cover {
  margin-bottom: 36px;
}

.mauto-single-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
}

.mauto-single-content {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.75;
}

.mauto-single-content h2,
.mauto-single-content h3 {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
}

.mauto-single-content a {
  color: #ffd400;
}

.mauto-single-content .wp-block-gallery {
  margin: 32px 0;
  gap: 16px;
}

.mauto-single-content .wp-block-gallery img {
  border-radius: 8px;
}

.mauto-single-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333333;
}

.mauto-empty {
  color: #bdbdbd;
}

/* Tablet */

@media (max-width: 1024px) {
  .mauto-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Telefon */

@media (max-width: 767px) {
  .mauto-gallery-container {
    width: calc(100% - 32px);
  }

  .mauto-gallery-banner {
    padding: 44px 0;
  }

  .mauto-gallery-content {
    padding: 36px 0 56px;
  }

  .mauto-event-grid {
    grid-template-columns: 1fr;
  }

  .mauto-event-body {
    padding: 18px;
  }

  .mauto-single-event {
    padding: 32px 0 56px;
  }

  .mauto-year-filters a {
    padding: 10px 16px;
  }
}

/* Dostępność: ograniczenie animacji */

@media (prefers-reduced-motion: reduce) {
  .mauto-event-card,
  .mauto-event-image img,
  .mauto-year-filters a {
    transition: none;
  }
}


/* ==========================================
   M-AUTO — BANER GALERII I WYDARZEŃ
   ========================================== */

/* Główna strona Gutenberg i archiwa PHP */

.mauto-gallery-banner {
    box-sizing: border-box;
    width: 100%;
    min-height: 200px;
    padding: 40px 0;

    display: flex;
    align-items: center;

    background-color: #101010;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.30) 60%,
            rgba(0, 0, 0, 0.05) 100%
        ),
        url("https://srv129460.seohost.com.pl/wp-content/uploads/2026/11/kontakt-background.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    border-bottom: 1px solid #282828;
}

/* Wewnętrzny kontener */

.mauto-gallery-banner .mauto-gallery-container {
    box-sizing: border-box;
    width: calc(100% - 48px);
    margin-inline: auto;
}

/* Tytuł */

.mauto-gallery-banner h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: Montserrat, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.15;
}

.mauto-gallery-banner h1 span {
    color: #ffd400;
}

/* Breadcrumbs */

.mauto-gallery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.mauto-gallery-breadcrumb a,
.mauto-gallery-breadcrumb span:last-child {
    color: #ffffff;
    text-decoration: none;
}

.mauto-gallery-breadcrumb a:hover {
    color: #ffd400;
}

.mauto-gallery-breadcrumb span:not(:last-child) {
    color: #ffd400;
}

/* Responsywność */

@media (max-width: 767px) {
    .mauto-gallery-banner {
        min-height: 160px;
        padding: 30px 0;
        background-position: 70% center;
    }

    .mauto-gallery-banner .mauto-gallery-container {
        width: calc(100% - 32px);
    }

    .mauto-gallery-breadcrumb {
        font-size: 13px;
    }
}
