:root{ 
  --main-blue-color: #DC143C;
  --black: #000000;
  --white: #FFFFFF;
  --primary-color: #DC143C;
  --secondary: #0a2540;
  --background: #F8F8FF;
  --text: #2C2C2C;
  --footer-background: white;
  --text-color: #111420;
  --text-gray: #e1e1e1;
  --text-heading-gray: #b9b9b9;
}

body {
  margin: 0;
  width: 100vw;
}

a, p, h1, h2, h3, h4 {
  font-family: "Josefin Sans", sans-serif;
}

.navbar {
  background-color: var(--white);
  height: 10vh;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

.navlogo{
  height: 2em;
}

.navbar-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: bold;
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu li {
  margin-right: 10px;
}

.menu li:last-child {
  margin-right: 0;
}

.menu li a {
  text-decoration: none;
  color: var(--black);
  font-weight: bold;
  padding: 10px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.menu li a:hover{
  color: var(--main-blue-color);
}

.gallery-container {
  padding-top: 7vh;
  padding-bottom: 7vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: center;
  gap: 1rem;
  max-width: 100rem;
}

.gallery-title{
  width: 100%;
  text-align: center;
}

.gallery-container article {
  max-width: 20rem;
  width: 100%;
  position: relative;
  display: block;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.text-more-container{
  width: 100%;
  text-align: end;
  max-width: 83rem;
}

.text-more{
  cursor: pointer;
  max-width: 83rem;
  text-align: end;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s ease-out;
}

.text-more:hover{
  color: var(--main-blue-color);
}

.gallery-container article h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  color: var(--text);
  transition: color 0.3s ease-out;
}


.gallery-container article img {
  max-width: 100%;
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  object-fit: cover;
}

.gallery-container article:hover img {
  transform: scale(1.1);
}

.gallery-container figure {
  width: 100%;
  height: 20rem;
  overflow: hidden;
  margin: 0rem;
}

footer {
  padding-top: 7vh;
  bottom: 0;
  background-color: var(--footer-background);
  min-width: 18rem;
  width: 100vw;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 90rem;
  padding: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  padding: 1rem 0px;
  justify-content: space-between;
}

.footer-line {
  display: block;
  width: 100%;
  height: 0.5rem;
  background: var(--main-blue-color);
}

/*? footer subscribe */
.footer-subscribe {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-subscribe > input {
  border: 1px solid var(--text-gray);
  color: var(--text-color);
  min-height: 2.25rem;
  font-size: 1.2rem;
  flex: 1 0 8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.footer-subscribe > button {
  cursor: pointer;
  background: var(--text-color);
  border-radius: 0.5rem;
  color: white;
  font-size: 1.25rem;
  min-width: 8rem;
  min-height: 2.25rem;
  flex: 1 0 5rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border: 0;
  outline: none;
}

/*? footer columns */
.footer-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  flex: 2 0 140px;
  width: 100%;
  gap: 1rem;
  padding: 1.5rem 0.5rem 1rem 0.5rem;
  margin: 0 auto;
}

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

.footer-columns ul a {
  color: var(--text-color);
  text-decoration: none;
}

.footer-columns ul a:hover{
  text-decoration: underline;
}

.footer-columns ul li {
  margin-bottom: 1rem;
}

.footer-columns h3 {
  color: var(--footer-heading-gray);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-centering {
  margin: 0 auto;
}

.footer-columns > section{
  padding-right: 5rem;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  min-width: 12rem;
  gap: 0.5rem;
}

.footer-logo > svg {
  stroke: var(--text-color);
  stroke-width: 0.5rem;
  width: 3rem;
}

/*? Footer bottom */

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(
      --text-gray
  );
  margin-top: 3rem;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 1rem 0px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-bottom > small {
  font-size: 1rem;
  margin: 0 0.25rem;
}

.footer-headline > h2 {
  margin: 0;
}

.footer-headline > p {
  margin: 0.75rem 0px;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.social-links img {
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.social-links img:hover {
  transform: scale(1.1);
}

@media only screen and (max-width: 778px) {
  .menu {
      display: none;
  }
  .gallery-container {
      padding-left: 2vw;
      padding-right: 2vw;
      padding-top: 4vh;
      padding-bottom: 4vh;
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      flex-grow: 1;
      margin: 0 auto;
      justify-content: center;
      gap: 1rem;
  }
  .gallery-container article {
      width: 10rem;
      height: 15rem;
      flex-grow: 1;
      width: calc(50% - 1rem); /* zmieniono szerokość elementów, aby wyświetlały się obok siebie z odstępem */
      position: relative;
      display: block;
      transition: all 0.4s ease-in-out;
      overflow: hidden;
      border-radius: 1rem;
      box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }
  footer {
    padding-top: 1vh;
  }
  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: space-between;
    justify-content: center;
    margin: 0 auto;
  }
  .footer-wrapper {
    display: inline;
  }
  .footer-columns {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    flex: 2 0 140px;
    width: 100%;
    gap: 1rem;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    margin: 0 auto;
  }
  .footer-columns > section {
    padding-right: 2rem;
  }
  .footer-columns > section > h3 {
    padding-top: 1rem;
  }
}

