/* FONTS -------------------------------------------------------------------------------------------------------------- */
@import url("gambarino.css");

/* GLOBAL ------------------------------------------------------------------------------------------------------------- */
:root {
  scroll-behavior: smooth;
  cursor: url("../img/cursors/open.svg") 21 21, default;
  --black: #050505;
  --white: #fafafa;
}

* {
  margin: 0px; /* Default margins */
  padding: 0px; /* Default padding */
  text-decoration: none;
  color: var(--black);
}

body {
  height: 100%; /* Force footer to end of page */
  display: flex; /* Force footer to end of page */
  flex-direction: column; /* Force footer to end of page */
  background-color: var(--white);
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

main {
  flex: 1 0 auto; /* Force footer to end of page */
}

/* Title */
h1 {
  font-family: "Gambarino-Regular", serif;
  font-size: 7rem;
  line-height: normal;
  color: var(--black);
}

/* Text */
.text {
  font-family: "Gambarino-Regular", serif;
  font-size: 1.6rem;
  line-height: normal;
  color: var(--black);
  margin: 0px 10px;
}

/* Links */
a {
  font-family: "Gambarino-Regular", serif;
  font-size: 1.6rem;
  line-height: normal;
  color: var(--black);
}

/* INDEX -------------------------------------------------------------------------------------------------------------- */
#gallery {
  width: calc(100% - 10px);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  row-gap: 10px;
  margin: 5px 5px 15px 5px;
}

.galleryElement {
  display: flex;
  width: calc(100% / 3);
}

.galleryImage {
  position: relative;
  border-inline: 5px solid var(--white);
  border-block: 5px solid var(--white);
  z-index: 1;
  width: calc(100% - 10px);
  height: 100%;
  object-fit: cover;
}

.galleryTitle {
  position: relative;
  z-index: 0;
}

/* Cursors */
.open {
  cursor: url("../img/cursors/open.svg") 21 21, pointer;
}

.close {
  cursor: url("../img/cursors/close.svg") 21 21, pointer;
}

/* MEDIA QUERIES ------------------------------------------------------------------------------------------------------ */
/* Content for tablet */
@media screen and (min-width: 1001px) and (max-width: 1300px) {
  h1 {
    font-size: 5rem;
  }

  .text {
    font-size: 1.2rem;
  }

  a {
    font-size: 1.2rem;
  }
}

/* Content for mobile */
@media screen and (max-width: 1000px) {
  #gallery {
    flex-direction: column;
    row-gap: 0px;
    margin: 5px;
  }

  .galleryElement {
    width: calc(100%);
    pointer-events: none;
  }

  .galleryTitle {
    display: none;
  }
}
