body {
  background-color: #222;
  color: #fff;
}

#new-menu {
  margin-bottom: 50px;
}

#new-menu .lg-tag {
  display: inline-block;
  width: 90px; /* Set a fixed width for the buttons */
  height: 50px; /* Set a fixed height for the buttons */
 
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 1px;
  font-size: 24px;
  text-align: center; /* Horizontally center the text */
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
  color: #F8F8F8;
}

#new-menu .lg-tag.active,
#new-menu .lg-tag:hover {
  color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



#new-menu .lg-tag[data-country="eesti"]:hover,
#new-menu .lg-tag.active[data-country="eesti"] {
  background-image: url("eesti.png");
}

#new-menu .lg-tag[data-country="lati"]:hover,
#new-menu .lg-tag.active[data-country="lati"] {
  background-image: url("lati.png");
}

#new-menu .lg-tag[data-country="leedu"]:hover,
#new-menu .lg-tag.active[data-country="leedu"] {
  background-image: url("leedu.png");
}

#new-menu .lg-tag[data-country="poola"]:hover,
#new-menu .lg-tag.active[data-country="poola"] {
  background-image: url("poola.png");
}

#new-menu .lg-tag[data-country="tsehhi"]:hover,
#new-menu .lg-tag.active[data-country="tsehhi"] {
  background-image: url("tsehhi.png");
}

#new-menu .lg-tag[data-country="sport"]:hover,
#new-menu .lg-tag.active[data-country="sport"] {
  background-image: url("sport.png");
}

#new-menu .lg-tag[data-country="loodus"]:hover,
#new-menu .lg-tag.active[data-country="loodus"] {
  background-image: url("loodus.png");
}
#new-menu .lg-tag[data-country="varia"]:hover,
#new-menu .lg-tag.active[data-country="varia"] {
  background-image: url("varia.png");
}

#select-none-button {
    display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px dashed #ccc;
  border-color: red;
  border-radius: 25px;
  font-size: 24px;
  color: #F8F8F8;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

#select-none-button:hover {
  background-color: #DADADA;
  color: #222;
}

.lg-tag {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 24px;
  color: #F8F8F8;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.lg-tag:hover {
  background-color: #DADADA;
  color: #222;
}

.lg-tag.active {
  background-color: #DADADA;
  color: #222;
  border: 2px inset #7EE01B;
}


.lg-tag.selected::after {
	
  content: '\f00d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 0.8em;
}

.lg-close {
  font-size: 20px;
  color: #DA1F1F;
  margin-left: 5px;
  cursor: pointer;
}

.tag-cloud {
	display: block;
	margin: auto;
	text-align: center;
	 margin-bottom: 50px;
}

.lg-tag.no-highlight {
  cursor: pointer;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
}

.lg-tag.no-highlight:hover {
  background-color: #eee;
}


.tag-italic {
  font-style: italic;
}


.photo-hide {
  display: none;
}

#lightgallery {
  margin: 0 auto;
  max-width: 900px; /* adjust as needed */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.lg-item {
  margin: 5px;
  box-sizing: border-box;
}

#lightgallery a:hover img {
  transform: scale(1.1);
  transition: transform 0.5s;
  z-index: 2;
}
#lightgallery a img {
  width: 150px;
  height: 150px;
}
.gallery-grid {
    display: grid;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 10px;
    justify-items: left; /* added */
    align-items: left; /* added */
}

.gallery-button.active {
  /* Set the background color for the active button */
  background-color: #222;
  color: #A6F40A;
 }

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  #new-menu .lg-tag {
    width: auto; /* Allow buttons to resize dynamically */
    height: auto;
    padding: 10px;
    font-size: 18px; /* Adjust font size for smaller screens */
  }

  #lightgallery {
    max-width: 100%; /* Ensure gallery fits within the screen */
    padding: 0 10px; /* Add some padding for better spacing */
  }

  #lightgallery a img {
    width: 100px; /* Smaller image size for mobile */
    height: 100px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Adjust column size */
    grid-gap: 5px; /* Reduce gap between items */
  }
}

