* {
  margin: 0;
  padding: 0;
}

body{
  background-color: black;
}

.MYcontainer{
  width: 100%;
  font-size: 22px;
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  font-weight: 900;
 
  padding: 1.1rem 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: aliceblue;
  z-index: 1;
  
   
}

.text{
  display: flex;
  justify-content: space-around;
}
.images{
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 70px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.images:hover{
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0);
}

.imge {
  position: fixed; /* замість absolute */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.4;
  object-fit: cover;
}


a {
  text-decoration: none; 
  color: inherit;       
}




.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}



.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 100px;
 
}

.card-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.card {
  width: 420px;
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 12px;
  overflow: hidden;

  
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem;
  position: relative;
  top: 10rem;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 15px 10px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.card-text {
  max-width: 1000px;
  color: #ddd;
  font-size: 26px;
  line-height: 1.4;
  margin: 2rem;
  position: relative;
  top: 8rem;
}
