body{
font-family: 'Cormorant Garamond', serif;
margin:0;
background:#f5ede0;
}
header{
text-align:center;
padding:40px 20px;
background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
              url('images/background3.jpeg') center / cover no-repeat;
color: white;

display: flex;
flex-direction: column;
align-items: center;
}
header h1 {
  font-size: 3rem; /* Zvětší jméno Jaroslav Koreček */
}
.header-content{
max-width:800px;
width:100%;
margin:auto;
text-align:center;
}
.gallery{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:40px;
padding:40px;
justify-content:center;
max-width: 1400px;
margin: 0 auto;
}
.painting{
background:white;
animation: fadeIn 0.4s ease;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
overflow:hidden;
width:100%;
margin:auto;
transition:transform 0.2s ease, box-shadow 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.painting:hover{
transform:translateY(-6px);
box-shadow:0 18px 35px rgba(0,0,0,0.2);
}
.painting img{
width:100%;
aspect-ratio: 1 / 1;
object-fit:cover;
display:block;
cursor: pointer;
}
.painting-text{
padding:20px;
text-align:center;
}
.painting-text h3{
margin: 0 0 8px;
font-size: 1.1rem;
}
.price{
font-weight:bold;
font-size:24px;
margin:10px 0;
color: #111;
}
.price span,
.dimensions span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  font-weight: 400;
  margin-right: 4px;
}
.dimensions {
  color: #555;
  font-size: 0.95rem;
  margin: 4px 0;
}
.painting-text button {
  background: #111;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}
.painting-text button:hover {
  background: #444;
}
footer{
  text-align:center;
  padding:20px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url('images/background3.jpeg');
  background-size: cover;
  background-position: center;
  color:white;
}
footer h2{
  font-variant: small-caps;
  font-size: 2rem;
  margin: 0 0 10px;
  letter-spacing: 0.1em;
}
footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.contact-btn{
display:block;
margin:25px auto 0;
padding:10px 28px;
border:1px solid rgba(255,255,255,0.4);
background:rgba(255,255,255,0.15);
color:white;
border-radius:20px;
cursor:pointer;
font-size:1rem;
transition:background 0.3s ease;
}

.contact-btn:hover{
background:rgba(255,255,255,0.3);
}
/* O autorovi — fotka vlevo s gradientem */
.about {
  padding: 0;
  background: #ede0cc;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: stretch;
  min-height: 350px;
}

.about-image {
  flex: 0 0 25%;
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient přes pravý okraj fotky */
.about-image::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(to right, transparent, #ede0cc);
}

.about-text {
  flex: 1;
  padding: 30px 40px 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
}

.about-text h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  color: #111;
}

.about-text p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: #333;
  margin: 0 0 10px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .about-container {
    flex-direction: column;
  }
  .about-image {
    flex: 0 0 auto;
    height: 300px;
  }
  .about-image::after {
    top: auto; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #ede0cc);
  }
  .about-text {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  header {
    padding: 40px 16px;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .filters ul {
    gap: 8px;
  }
  .filters button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .about-text {
    padding: 24px 20px;
  }
}

#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

#gallery {
  display: contents;
}
