:root {
  --background-header-footer: linear-gradient(to right, #343333, #484848, #282828);
  --font: 'Roboto', sans-serif;
  --list-item-font: 400 20px/19px 'Roboto', sans-serif;
  --h3-font: 400 20px/18px 'Roboto', sans-serif;
  --ul-letter-spacing: 3px;
}

html {
  scroll-behavior: smooth;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.header {
  background: var(--background-header-footer);
  margin: 0 auto;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1150px;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 100%;
  max-width: 290px;
  height: 50px;
  margin-top: 5px; 
}

.navLink {
  text-decoration: none;
  width: 75px;
  height: 30px;
  font: 400 23px 'Roboto', sans-serif;
  color: #FFFDFA;
  display: inline-block;
  margin-top: 20px;
}

.navLink:hover {
  color: #F17900;
  transition: color 0.3s ease;
}


.searchContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font: 700 60px 'Roboto', sans-serif;  
  width: 100%;
  max-width: 765px;
  margin: 0 auto;
  padding-top: 75px ;
}

.orangeText {
  color: #F17900;
}

.searchBar {
  position: relative;
  justify-content: center;
  margin: 80px auto 0 auto;
  max-width: 765px;
  width: 100%;
  border: none;
  padding: 0 20px;
  box-sizing: border-box;
}

.searchBar input[type="text"] {
  padding-left: 15px;
  background: #3939390D;
  border: none;
  border-radius: 16px;
  display: flex;
  width: 100%;
  height: 65px;
  font: 16px 'Montserrat', sans-serif; 
}

.searchBar button {
  position: absolute;
  right: 35px; 
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 0;
}

.gallery-wrapper {
  display: flex;
  width: 909px;
  height: 1055px;
  margin: 100px auto 150px auto;
  justify-content: center;
  align-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 285px); 
  grid-auto-rows: 244px;
  gap: 26px;
 
}

.gallery-grid img {
  width: 285px;
  height: 245px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px #0f0b0b;
}

.loader-from-gallery {
  border: 6px solid ;
  border-top: 6px solid #F17900;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 100px auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.validation-message {
  visibility: hidden;
  min-height: 20px;
  font: 14px 'Roboto', sans-serif;
  color: #FF0000;
  max-width: 90%;
  margin: 10px auto 0 auto;
}
.validation-message.active {
  visibility: visible;
}

.load-error {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FF0000;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  z-index: 10;
}


.logo-container {
  width:  270px;
  display: flex;
  flex-direction: column;
  gap: 23px;

}

.logo-container p {
  font: 400 14px/22px 'Roboto', sans-serif;
  color: #FFFFFF99;
  padding-right: 15px;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: left;
}

.social-icons a {
  width: 28px;
  height: 28px;
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #000000;
   
}

.social-icons a svg {
  width: 12px;
  height: 12px;
  transition: fill 0.3s ease;
  fill: #000000;
}

.social-icons a:hover {
  background-color: #E0A449;
}

.social-icons a:hover svg {
  fill: #FFFFFF;
}


.footer-main {
  background: var(--background-header-footer);
  width: 100%;
  padding: 85px 0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1250px;
  width: 100%;
  height: 215px;
  gap: 85px;
  margin-bottom: 25px;
}

.footer-column {
  display: flex;
  flex-wrap: nowrap;
  gap: 85px;
  flex: 1; 
}

.footer-column a {
  text-decoration: none;
  color: #FFFFFF99;
}

.footer-column a:hover {
  color: #F17900;
}

.column {
  min-width: 130px;
  
}

.footer-column h3 {
  font: var(--h3-font);
  color: #E0A449;
  margin-bottom: 26px;
  letter-spacing: var(--ul-letter-spacing);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  font: var(--list-item-font);
  color: #FFFFFF99;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
  
}

.copyright {
  width: 100%;
  max-width: 1250px;
  text-align: left;
}

.copyright p {
  font: 400 16px 'Roboto', sans-serif;
  color: #FFFFFF99;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #19191999;
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  position: relative;
  width: 725px;
  height: 540px;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #F17900; 
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.prev {
  left: -135px;
}

.nav-btn.next {
  right: -135px;
}

.nav-btn:hover {
  background-color: #ffa640; 
  color: #ffffff;
}


@media (max-width: 1200px) {
  .logo {
    max-width: 200px;
    height: 40px;
  }

  .navLink {
    font-size: 18px;   
    width: auto;       
    height: auto;
    margin-top: 15px;
  }

  .searchContainer {
    font: 700 42px 'Roboto', sans-serif;
    padding-top: 60px;
  }

  .searchBar {
    margin: 60px 150px 0 150px;
  }

  .searchBar input[type="text"] {
    height: 55px;
    font-size: 14px;
  }

  .container {
    padding: 0 50px;
  }

  .footer-container {
    max-width: 1000px;
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 0px;
  }
  
  .footer-column {
    gap: 40px;
    flex-wrap: nowrap;
  }

  .footer-column h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer-column li {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 18px;
  }

  .column {
    min-width: 100px;
  }

  .logo-container {
    width: 230px;
    gap: 15px;
  }

  .logo-container p {
    font-size: 13px;
    line-height: 20px;
  }

   .copyright {
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
  }

  .copyright p {
    font-size: 14px;
  }

  .modal-content {
    width: 600px;
    height: 450px;
  }

}

@media (max-width: 992px) {

   .container {
    align-items: center;
    padding: 20px;
  }

  .logo {
    max-width: 180px;
    height: 40px;
    margin-bottom: 10px;
  }

  .navLink {
    font-size: 16px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .searchContainer {
    font: 700 34px 'Roboto', sans-serif;
    padding-top: 40px;
    max-width: 600px;
  }

  .searchBar {
    margin: 40px 80px 0 80px;
    max-width: 600px;
  }

  .searchBar input[type="text"] {
    height: 50px;
    font-size: 14px;
  }

  .footer-container {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .logo-container {
    width: 200px;
    gap: 10px;
  }

  .logo-container p {
    font-size: 13px;
    text-align: left;
  }

  .footer-main {
    padding: 50px 0 50px;
    position: relative;
  }

  .footer-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }

  .column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 80px;
  }

  .footer-column h3 {
    font-size: 13px;
    margin-bottom: 13px;
  }

  .footer-column li {
    text-align: left;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 15px;
  }

   .copyright {
    width: 100%;
    max-width: 770px;
    text-align: left;
  }

  .copyright p {
    font-size: 13px;
  }

  .gallery-wrapper {
    width: 100%;
    height: auto;
    padding: 0 20px;
    margin: 100px auto;
 }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
  }

  .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-content {
    aspect-ratio: 4 / 3;
    width: 90%;
    max-width: 500px;
    height: auto;
  }

  .nav-btn.prev {
    left: -100px;
  }

  .nav-btn.next {
    right: -100px;
  }

}

@media (max-width: 768px) {
  .validation-message {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
    font-size: 12px;
  }
  
  .logo img{
    max-width: 200px;
    height: auto;
  }

  .navLink {
    font-size: 13px;
    margin: 8px;
  }

  .container {
    padding: 0 16px;
  }

  .searchContainer {
    font: 700 24px 'Roboto', sans-serif;
    padding-top: 25px;
    max-width: 100%;
    text-align: center;
  }

  .searchBar {
    margin: 25px auto 0 auto;
    width: 280px;
    padding: 0;
  }

  .searchBar input[type="text"] {
    height: 40px;
    font-size: 13px;
    padding-left: 12px;
    padding-right: 44px;
    width: 100%;
  }

  .searchBar button {
    right: 12px;
    width: 24px;
    height: 24px;
  }

  .gallery-wrapper {
    width: 100%;
    height: auto;
    padding: 0 16px;
    margin: 40px auto;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
    grid-auto-rows: 180px;
  }

  .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0 16px;
    text-align: left;
  }

  .footer-column {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    text-align: left;
    width: 270px;
  }

  .footer-column ul {
    display: block;
    margin: 0;
    padding: 0;
  }

  .column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
    margin-top: 10px;
  }

  .footer-column h3 {
    font-size: 15px;
  }

  .footer-column li {
    display: none;
  }

  .logo-container {
    width: 270px;
    gap: 12px;
  }

  .logo-container img{
    max-width: 200px;
  }

  .logo-container p {
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    padding-right: 30px;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
  }

  .social-icons a svg {
    width: 14px;
    height: 14px;
  }

  .copyright {
    padding: 0 16px;
    text-align: center;
    margin-top: 15px;
    max-width: 270px;
  }

  .copyright p {
    font-size: 14px;
    text-wrap: nowrap;
  }

  .modal-content {
    width: 90%;
    max-width: 350px;
    aspect-ratio: 4 / 3;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .nav-btn.prev {
    left: -40px;
  }

  .nav-btn.next {
    right: -40px;
  }
}

@media (max-width: 576px) {
  .validation-message {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
    font-size: 13px;
  }
  
  .header {
    height: 80px;
    padding: 0 10px;
    justify-content: center;
  }

  .logo {
    max-width: 150px;
    height: auto;
  }

  .logo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .logo-container img{
    max-width: 150px;
  }

  .container {
    align-items: center;
    padding: 0 10px;
    text-align: center;
  }

  .navLink {
    font-size: 12px;
    margin: 4px 6px;
    padding: 4px 6px;
  }

  .searchContainer {
    font: 700 20px 'Roboto', sans-serif;
    padding-top: 20px;
    max-width: 100%;
  }

  .searchBar {
    margin: 20px auto 0 auto;
    width: 240px;
    padding: 0;
  }

  .searchBar input[type="text"] {
    height: 38px;
    font-size: 12px;
    padding-left: 12px;
    padding-right: 40px;
    width: 100%;
  }

  .searchBar button {
    right: 10px;
    width: 22px;
    height: 22px;
  }

  .gallery-wrapper {
    width: 100%;
    height: auto;
    padding: 0 12px;
    margin: 30px auto;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    grid-auto-rows: 180px;
  }

  .gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
    text-align: center;
  }

  .footer-column {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 270px;
  }

  .footer-column h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .footer-column ul {
    display: none;
  }

  .logo-container {
    width: 100%;
    max-width: 240px;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .logo-container img {
    width: 100%;
  }

  .logo-container p {
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    padding: 0;
  }

  .social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 240px;
  }

  .social-icons a {
    width: 28px;
    height: 28px;
  }

  .social-icons a svg {
    width: 12px;
    height: 12px;
  }

  .copyright {
    padding: 0 12px;
    text-align: center;
    margin-top: 20px;
    max-width: 260px;
  }

  .copyright p {
    font-size: 12px;
    text-wrap: nowrap;
  }

  .modal-content {
    width: 90%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nav-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .nav-btn.prev {
    left: -40px;
  }

  .nav-btn.next {
    right: -40px;
  }
}
