/* ==========================================================================
   Flakpravoslav.art - Static Site Stylesheet
   Based on WordPress Twenty Seventeen dark theme
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #222;
  color: #eee;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #fff;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header / Banner
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 870px;
  min-height: 400px;
  overflow: hidden;
}

.custom-header-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 870px;
  min-height: 400px;
  object-fit: cover;
  z-index: -1;
}

.site-branding {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.site-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
}

.site-description {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  font-weight: 400;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navigation-top {
  background: #222;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navigation-top .wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: #fff;
  text-decoration: underline;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #555;
  color: #ddd;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.menu-toggle:hover {
  color: #fff;
  border-color: #888;
}

/* Scroll-down icon */
.menu-scroll-down {
  display: none;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.site-content-contain {
  background: #222;
}

.site-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 5%;
}

/* Panel / Section on homepage */
.panel-content {
  margin-bottom: 60px;
}

.panel-content .entry-header {
  margin-bottom: 20px;
}

.entry-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eee;
  margin-bottom: 16px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.5;
  color: #ddd;
}

.entry-content h2 {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.4;
  margin: 24px 0 12px;
  text-transform: none;
  letter-spacing: normal;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content a {
  text-decoration: underline;
}

/* Separator between sections */
.panel-separator {
  border: 0;
  border-top: 3px solid #333;
  margin: 50px 0;
  max-width: 100%;
}

/* ==========================================================================
   Homepage Sections (Panels)
   ========================================================================== */
.home-section {
  padding: 60px 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.exhibition-image {
  max-width: 500px;
  margin: 20px auto 30px;
}

/* Panel background images (parallax dividers) */
.panel-image {
  position: relative;
  height: 100vh;
  max-height: 870px;
  min-height: 400px;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@supports (-webkit-touch-callout: none) {
  /* iOS doesn't support background-attachment: fixed */
  .panel-image {
    background-attachment: scroll;
  }
}

/* ==========================================================================
   Gallery (Nabidka del)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio fallback */
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1;
  padding: 10px;
  z-index: 10001;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  z-index: 10001;
  user-select: none;
}

.lightbox-nav:hover {
  color: #ccc;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* ==========================================================================
   CV Page
   ========================================================================== */
.cv-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: #eee;
}

.cv-content p {
  margin-bottom: 1em;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info {
  font-size: 1rem;
  line-height: 2;
}

.contact-info a {
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #222;
  border-top: 1px solid #333;
  padding: 20px 5%;
  text-align: left;
}

.site-footer .wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.site-info {
  font-size: 0.75rem;
  color: #888;
}

.site-info a {
  color: #aaa;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .site-branding {
    padding: 20px 5%;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
    margin: 10px 0;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation a {
    padding: 10px 0;
  }

  .navigation-top .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px;
  }

  .site-content {
    padding: 40px 5%;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
