body {
  margin: 20px;
  font-family: "Lato", "Arial", sans-serif;
  color: #000;
  line-height: 1;
  background-color: #f7f7f7;
  -webkit-font-smoothing: antialiased;
  -webkit-font-smoothing: subpixel-antialiased;
  
}

h1{
    margin-bottom:30px;
}

h2{
    margin-top:40px;
}

h3{
    margin-top:20px;
}

/* ===== KAFELKI WYDARZEŃ ===== */

.events{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.event{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:0.2s;
    text-decoration:none;
    color:black;
}

.event:hover{
    transform:translateY(-4px);
}

.event img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.event-title{
    padding:14px;
    font-weight:bold;
    font-size:16px;
}

/* ===== GALERIA ZDJĘĆ ===== */

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

.gallery img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:6px;
    transition:0.2s;
}

.gallery img:hover{
    transform:scale(1.03);
}

.back{
    margin-bottom:20px;
    display:inline-block;
    text-decoration:none;
    font-weight:bold;
}

/* ===== TABLET ===== */

@media (max-width:1024px){

.events{
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
}

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

.gallery img{
    height:150px;
}

}

/* ===== DUŻY TELEFON ===== */

@media (max-width:768px){

body{
    margin:15px;
}

.events{
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:15px;
}

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

.gallery img{
    height:130px;
}

.event img{
    height:150px;
}

}

/* ===== TELEFON ===== */

@media (max-width:480px){

h1{
    font-size:22px;
}

h2{
    font-size:20px;
}

.events{
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.gallery{
    grid-template-columns:1fr 1fr;
}

.gallery img{
    height:120px;
}

.event img{
    height:120px;
}

.event-title{
    font-size:14px;
    padding:10px;
}

}