* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  font-family: "Montserrat", sans-serif;
}
.contact {
  display: flex;
  justify-content: space-around;
  width: 100%;
  height: 35px;
  background-color: rgb(222, 156, 235);
  color: white;
  line-height: 35px;
  font-size: 15px;
}
.contact div a {
  text-decoration: none;
  color: white;
}
.con {
  font-size: 20px;
  width: 10px;
  height: 10px;
  line-height: 25px;
  color: white;
  text-decoration: none;
}

.fa-brands {
  font-size: 20px;
  width: 10px;
  height: 10px;
  line-height: 35px;
  color: white;
  text-decoration: none;
}
.fa-brands:hover {
  color: rgb(90, 90, 207);
}

.head {
  width: 100%;
  display: flex;

  height: 20vh;
  min-height: 200px;
}

.logo {
  flex-basis: 58%;
  background-repeat: no-repeat;
  margin-right: 60px;
  margin-top: 30px;
  text-align: right;
}
.logo img {
  width: 300px;
  height: 150px;
}
nav {
  display: flex;
  flex-basis: 38%;
  margin-top: 30px;
  height: 120px;
  align-items: center;
  justify-content: center;
}
ul {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
}
li {
  color: white;
  line-height: 100%;
  margin: 10px;
}
.burger {
  position: absolute;
  top: 75px;
  right: 100px;
  font-size: 25px;
  color: rgb(54, 54, 54);
  display: none;
  cursor: pointer;
}
.xicon {
  position: absolute;
  top: 75px;
  right: 100px;
  font-size: 25px;
  color: rgb(54, 54, 54);
  display: none;
  cursor: pointer;
}
aside {
  position: absolute;
  top: 165px;
  bottom: 300px;
  left: 0px;
  width: 100%;

  opacity: 0.9;
  display: none;
}
aside div {
  background-color: white;
  width: 100%;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
}

aside.active div:hover {
  background-color: rgb(222, 156, 235);
  cursor: pointer;
}
aside.active {
  display: block;
}
.xicon.active {
  display: block;
}
.burger.active {
  display: none;
}

a {
  text-decoration: none;
  color: rgb(54, 54, 54);
  letter-spacing: 1px;
  font-size: 17px;
  padding-bottom: 10px;
  transition: border-bottom 0.1s ease;
  font-weight: 600;
}
nav a:hover {
  color: rgb(222, 156, 235);
}

.last {
  display: flex;
  width: 100%;

  height: 250px;
  background-color: rgb(228, 174, 238);
  align-items: center;
}
.last div {
  flex-basis: 34%;
  background-color: rgb(228, 174, 238);
  text-align: center;
}
.last div p {
  margin-top: 10px;
  margin-bottom: 5px;
}
.last div strong {
  text-align: center;
}

.last div .fa-brands {
  margin-top: 10px;
  font-size: 30px;
}
.last .media {
  width: 20%;
}
footer {
  width: 100%;
  height: 50px;
  background-color: rgb(228, 174, 238);
  border-top: 1px dotted black;
  display: flex;
  opacity: 0.9;
}
footer div {
  width: 100%;
  font-size: 13px;
  background-color: rgb(223, 150, 234);
  text-align: center;
  line-height: 50px;
}
.container1 {
  margin-top: 20px;
  padding-top: 35px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 2px solid rgb(222, 156, 235);
  width: 80vw;
}
.title {
  text-align: center;
}
h1 {
  color: rgb(54, 54, 54);
  letter-spacing: 1px;
  font-size: 30px;
  margin: 20px auto;
}
.gallery {
  flex-basis: 25%;
  height: 500px;
  background-color: black;
  margin: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 5px;
  
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}
.title span {
  color: rgb(222, 156, 235);
}
.gallery img:hover {
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s linear;
}

.gallery:hover i {
  opacity: 1;
  cursor: pointer;
}

.gallery i {
  position: absolute;
  font-size: 60px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  opacity: 0;
  z-index: 1;
}
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;

}
.modal-content {
  display: block;
  margin: 2% auto;
  width: 80%;
  max-height: 35%;
  max-width: 35%;
  
}
.modal-content img {
  width: 100%;
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.containermain {
  display: flex;
  flex-direction: column;
  width: 70vw;
  margin: 0 auto;
  border-top: 2px solid rgb(222, 156, 235);
  
  
}

.containermain p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.containermain h2 {
  margin-bottom: 15px;
  font-size: 24px;
  color: #333;
}

.imgweding {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
}

.imgweding img {
  width: 100%;
  border-radius: 10px;

}

.okno1, .okno2, .okno3, .okno4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 10px;
}

.okno1, .okno3 {
  margin-top: 50px;
}

.opis1, .opis2, .opis3, .opis4 {
  width: 45%; 
  letter-spacing: 1px;
  color: #555;
  margin-right: 10px;
}

.buttonweding {
  width: 550px;
  letter-spacing: 1px;
  margin-block: 50px;
  margin-inline: auto;
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #dc9ceb;
  color: white;
  border: 2px solid #dc9ceb;
  border-radius: 50px; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.buttonweding:hover {
  background-color: #b77bb5; 
  color: #fff;
  border-color: #b77bb5;
  transform: translateY(-5px); 
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}

.buttonweding:active {
  transform: translateY(0); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

@media (max-width: 768px) {
  .containermain {
    width: 90vw;
  }

  .okno1, .okno2, .okno3, .okno4 {
    flex-direction: column;
    align-items: center;
  }

  .opis1, .opis2, .opis3, .opis4 {
    width: 80%;
    text-align: center;
    margin-bottom: 20px;
  }

  .imgweding {
    width: 80%;
    margin-bottom: 20px;
  }

  .imgweding img {
    width: 100%;
  }
}

@media (max-width: 1900px) {
  .logo {
    flex-basis: 56%;
  }
}
@media (max-width: 1600px) {
  .logo {
    flex-basis: 58%;
  }
}
@media (max-width: 1300px) {
  .logo {
    flex-basis: 63%;
  }
  .gallery {
    height: 420px;
  }
}

@media (max-width: 1200px) {
  .gallery {
    height: 400px;
    flex-basis: 35%;
  }
  .logo {
    flex-basis: 66%;
  }
}
@media (max-width: 1115px) {
  .gallery {
    height: 470px;
 
    flex-basis: 40%;
  }
}
@media (max-width: 1050px) {
  .logo {
    flex-basis: 72%;
  }
  .gallery {
    flex-basis: 42%;
  }
  .modal-content {
    max-width: 40%;
  }
  .buttonweding {
    width: 260px;
  }
}
@media (max-width: 950px) {
  .logo {
    flex-basis: 77%;
  }
  .gallery {
    height: 450px;
  }
  .modal-content {
    max-width: 45%;
  }
}

@media (max-width: 900px) {
  .container1 {
    width: 95vw;
  }
}
@media (max-width: 820px) {
  .logo {
    flex-basis: 90%;
  }
  .gallery {
    flex-basis: 45%;
    margin: 8px;
    height: 410px;
  }
  .modal-content {
    max-width: 50%;
  }
  .contact {
    font-size: 13px;
  }
  .contact a {
    font-size: 13px;
  }
  .logo img {
    width: 230px;
    height: 110px;
  }
}

@media (max-width: 700px) {
  .modal-content {
    max-width: 60%;
  }
  .gallery {
    height: 380px;
  }
  .logo {
    flex-basis: 50%;
  }
  .last {
    font-size: 12px;
  }
  .last span a {
    font-size: 12px;
  }
  .last div .fa-brands {
    padding-right: 15px;
  }
}

@media (max-width: 620px) {
  .modal-content {
    max-width: 70%;
  }
  .fa-brands {
    padding-right: 25px;
  }
  .gallery {
    flex-basis: 80%;
    height: 500px;
  }
}
@media (max-width: 550px) {
  .gallery {
    height: 480px;
  }
}
@media (max-width: 500px) {
  .modal-content {
    max-width: 80%;
  }
  .close {
    right: 10px;
  }

  .head {
    min-height: 165px;
  }
  .last {
    height: 375px;
    display: block;
  }
  .last div {
    font-size: 10px;
    padding-top: 20px;
  }
  .last .media {
    width: 100%;
  }
  .last div p {
    margin-top: 6px;
  }
  footer div {
    font-size: 12px;
  }
}
@media (max-width: 450px) {
  .logo {
    margin-right: 15px;
  }
  .logo img {
    padding-left: 20px;
  }
  .gallery {
    height: 440px;
    flex-basis: 90%;
  }
  .contact div {
    font-size: 10px;
  }
  .contact a {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  nav a {
    font-size: 12px;
  }
}

 */
.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev, .next {
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 1000;
}

.prev {
  left: 0;
}

.next {
  right: 0;
} 