 /* *{border: 0.2vw solid red;} */
 :root {
    /* --bg-color: #f4f4f9; */
    --text-color: #333;
    --card-bg: #fff;
    --accent-color: #d32f2f; /* Czech red accent */
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    width: 110rem;
    max-width: 100%;
    margin-inline: auto;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at center, #ad4545 4%, #0f0f0f 70%);
    color: white;
    box-shadow: var(--shadow);
    width: 110rem;
    max-width: 100%;
    margin-inline: auto;
}

#menu{
  position: fixed;
  font-size: clamp( 1rem, 2vw, 2rem);
  width: clamp(5%, 6vw, 10%);
  max-width: 100%;
  height: 5%;
  background:skyblue;
  opacity: 1;
  color: white;
  box-shadow: inset 0 0 0 1px black;
  border: 0.2vw solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1vw;
  z-index: 10;
}

#menu:hover{
  background:lightgrey;
  color:aliceblue;
  box-shadow:inset 0 0 0 1px white;
  border:0.5vw solid darkgreen; cursor: pointer;
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-size: clamp( 1rem, 3vw, 4rem);
}
header p { font-size: 1.1rem; opacity: 0.9; }

/* styling info section */
.info{
    display: flex;
    flex-flow: column wrap;
    justify-content:center;
    align-items: center;
    max-width: 110rem;
    width: 100%;
    margin-inline: auto;
    height: fit-content;
}

.info .text, .info .total{
    color: white;
    font-size: clamp(1rem, 1.5vw, 2rem);
    font-weight: 400;
}
.info .total a{
    color: orangered;
}

.controls {
    text-align: center;
    margin: 1.5rem 0;
    max-width: 110rem;
    width: 100%;
    margin-inline: auto;
 }

.btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: var(--shadow);
}

.btn:hover { background-color: #b71c1c; transform: translateY(-2px); }
.btn.active { background-color: #2e7d32; }

/* Gallery Grid */
.lw-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
    max-width: 110rem;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.city{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: clamp(15rem, 18dvw, 18rem); */
    width: 100%;
    height: min-content;
    color: rgb(207, 213, 29);
    font-size: clamp(1rem, 1.5dvw, 3rem);
    background-color: grey;
    border-radius: 2vw;
    margin-top: clamp(1rem, 1vw, 3rem);}

.gallery-item img {
    width: 100%;
    height: 13.75rem;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.caption {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
}


/*-----------------------------------------------------------------------------------------*/

/* FILTER SECTION */
section {
   display: flex;
   flex-flow: row wrap;
   justify-content: left;
   align-items: left;
   padding: 0.5dvw;
   width: 100%
}

.filter {
   display: none;
}

/* The "show" class is added to the filtered elements */
.show {
   display: block;
   animation: fadeIn 0.5s;
}

.filter-btn {
   font-size: clamp(0.5rem, 1dvw, 1rem);
   padding: 0.3%;
   color: black;
   background: repeating-linear-gradient(45deg, lightgrey, skyblue, lightgreen);
   border: 0.1dvw solid black;
   cursor: pointer;
   border-radius: 25%;
   margin-inline: 0.2dvw;
   width: 8.5dvw;
}

.filter-btn:hover {
   background: repeating-linear-gradient(25deg, lightgrey, black, indigo);
   color: red;
}

.filter-btn.active {
   background: orange;
   color: blue;
}

.filter-btn.active,
.filter-btn.active a {
   background: orange;
   color: blue;
}

.filter-btn a {
   color: red;
   font-weight: 400;
   z-index: 10;
   font-size: clamp(0.5rem, 1dvw, 1rem);
}

/*------------------------------------------------------------------------------------------*/

/*settings for the pop-up */
#lw-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: burlywood;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.lw-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lw-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 90vh;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

#lw-screen .lw-image img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    border-radius: 0.5rem;
    object-fit: contain;
}

.lw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.lw-btn {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
}

.lw-btn:hover {
    background: rgba(255,255,255,0.9);
}

.lw-close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    border: 0.2rem solid red;
}

.lw-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0.2rem solid red;
}
.lw-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0.2rem solid red;
}



/* @media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px; }
    .gallery-item img { height: 150px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}*/
