@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}
body {
  background: #f8f3e0;
  color: #2b3644;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}
.splash {
  background: url('../images/0001.webp');
  background-attachment: fixed;
  background-size: cover;
}
.splash header ul li a:link {
  color: #f8f3e0 !important;
}
.splash header ul li a:visited {
  color: #f8f3e0 !important;
}
.splash header ul li a:hover {
  color: #ba4446 !important;
}
.splash footer {
  background: none;
}
h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a4564;
}
p{
  font-weight: 600;
  margin-bottom: 1.5rem;
}
a {
  text-decoration: none;
  font-weight: 600;
}
ul {
  list-style: none;
  margin-bottom: 2rem;
}
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.container {
  display: flex;
  flex: 1;
}
header {
  width: 9rem;
  padding: 0.5rem;
  position: fixed;
}
.container-contact {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.container-contact header {
  width: initial;
  position: relative;
}
.container-contact main {
  margin-left: initial;
  padding-top: 2rem;
}
header a:link {
  color: #2b3644;
}
header a:active {
  color: #2b3644;
}
header a:visited {
  color: #2b3644;
}
header a:hover {
  font-weight: 800;
  color: #ba4446;
}
#logo {
  height: 2rem;
  margin-bottom: 2rem;
}
.social {
  height: 1.7rem;
}

.social-image {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.social-image .social {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition: opacity 0.3s ease;
}

/* Normal image */
.social-image .social:first-child {
  opacity: 1;
}

/* Hover image */
.social-image .social:last-child {
  opacity: 0;
}

/* Swap on hover */
.social-image:hover .social:first-child {
  opacity: 0;
}

.social-image:hover .social:last-child {
  opacity: 1;
}

main {
  flex: 1;
  padding: 0.5rem;
  margin-left: 9rem;
  position: relative;
}
.gallery-wrapper {
  width: 100%;
  position: relative;
}
.bottom {
  margin-bottom: 3rem;
}
.gallery-wrapper h2 {
  text-align: center;
  color: #f8f3e0;
  background: #ba4446;
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
  position: absolute;
  right: 0;
  padding: 0.5rem;
  z-index: 1000;

}
.gallery {
  display: grid;
  gap: 0.5rem;
}

.gallery-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.about-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.about-content {
  display: grid;
  gap: 1rem;
}
.about-content img {
  display: block;
  width: 100%;
}

/*FORM*/

form {
  width: 100%;
  max-width: 30rem;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  color: #1a4564;
  font-weight: 600;
  border-style: solid;
  border-color: #1a4564;
  border-width: 1px;
}
textarea {
  resize: none;
}
input:focus {
  border-color: #ba4446;
  outline: none;
}
textarea:focus {
  border-color: #ba4446;
  outline: none
}
button.sender {
  width: 6rem;
  height: 3rem;
  background: #1a4564;
  border: none;
  color: #f8f3e0;
  font-weight: 600;
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
button.sender:hover {
  background: #ba4446;
}

.contact-website-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}



footer {
  padding: 0.5rem;
  text-align: center;
  background: #2b3644;
  color: #f8f3e0;
}







@media (width >= 48rem) {

  .container-contact {
    display: flex;
    flex-direction: initial;
    flex: 1;
  }
  .container-contact header {
    width: 12rem;
    position: fixed;
    padding: 2rem;
  }
  .container-contact main {
    padding: 2rem;
    margin-left: 12rem;
  }

  header {
    width: 12rem;
    padding: 2rem;
    position: fixed;
  }
  main {
    padding: 2rem;
    margin-left: 12rem;
    position: relative;
  }

  .contact-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 30rem;
    display: block;
    width: 100%;
    max-width: 30rem;
  }

  .gallery-wrapper h2 {
    right: initial;
    left: 50%;
    transform: translate(-50%, -1.3rem);
  }
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

.about-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 42rem;
}



}


@media (width >= 60rem) {

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

  .gallery-image {
    /* Slightly softened by default */
 opacity: 0.90;
 filter: brightness(0.9) contrast(0.9);

 transition:
   opacity 0.3s ease,
   filter 0.3s ease,
   transform 0.3s ease;
  }
  .gallery-image:hover {
  opacity: 1;
  filter: brightness(1) contrast(1);

  /* Optional very subtle zoom */
  transform: scale(1.02);
}

}








/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;

  border: 0;
  background: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}
