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

@font-face {
    font-family: Exat-Light;
    src: url(font/Exat-Light.otf);
}
@font-face {
    font-family: Exat-Regular;
    src: url(font/Exat-Regular.otf);
}
@font-face {
    font-family: Exat-Medium;
    src: url(font/Exat-Medium.otf);
}
@font-face {
    font-family: Exat-Bold;
    src: url(font/Exat-Bold.otf);
}

:root {
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    --offwhite: hsla(0, 0%, 100%, 0.9);
    --primary: hsl(21, 100%, 50%);
    --primary-trans: hsla(21, 100%, 50%, 0.5);
    --black-trans: hsla(0, 0%, 0%, 0.5);
    --transparent: hsla(0, 0%, 0%, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--offwhite);

    font-family: Exat-Regular;
    font-size: 20px;
    font-kerning: normal;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: 95%;
    overflow-x: hidden;
}

nav {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;

    width: 95vw;
    height: auto;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: start;

    padding: 20px;
    background-color: aliceblue;

    z-index: 1000;
}

.links {
    margin-top: 10px;
}
.links > a {
    margin-right: 10px;
}
.links > a:last-child {
    margin-right: 0px;
}

a {
    color: var(--primary);
    text-decoration: underline;
}

p {
    font-family: Exat-Light;
    text-align: justify;
    padding: 10px;
}

.cta {
    width: 99%;

    padding: 10px;
    border-radius: 100px;

    background-color: var(--transparent);
    border: 1px solid var(--black-trans);
    color: var(--primary);

    text-decoration: none;
    text-align: center;

    transition: transform 0.3s cubic-bezier(.45,.11,.32,1.55);
}
.cta:hover {
    transform: scale(1.01);
}
.cta:active {
    background-color: var(--primary-trans);
    color: var(--black);

    transform: scale(0.96);
}


.logo {
    width: auto;
    height: 20px;
    border-radius: 0;
}

.glass {
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    background-color: hsla(0, 0%, 0%, 0.2);
    border-radius: 20px;
    border: 1px solid hsla(216, 12%, 84%, 0.3);
}
/* .glass-orange {
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    background-color: hsla(21, 100%, 50%, 0.2);
    border-radius: 20px;
    border: 1px solid hsla(216, 12%, 84%, 0.3);
} */


/* .hero-banner {
    height: 100px;
    width: 700px;

    background-image: url(assets/hero-banner.svg);
    background-size: cover;
    background-repeat: no-repeat;
    
} */

header {
    width: 100%;
    height: 110vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    background-image: url(assets/hero-bg1.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
}

.fade {
    width: 100%;
    height: 200px;

    background: linear-gradient(to bottom, transparent, black);
}
.landing {
    color: var(--black);
    text-align: center;
}
.spacer-bottom {
    width: 0;
    height: 130px;
}

h1 {
    margin-top: 60px;
    font-size: 48px;
    color: var(--black);
}

h2 {
    width: 95%;
    font-size: 32px;
}
h2:first-child {
    padding-bottom: 20px;
}


main {
    display: flex;
    flex-direction: column;

    margin-top: 60px;
}
main:first-child {
    margin-top: 0px;
}

main > a {
    width: 100%;
}


/* 1. Make the gallery a grid with 2 columns by default */
.featured-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;            /* spacing between items */
}

/* 2. On wider screens, switch to 3 columns */
@media (min-width: 768px) {
  .featured-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3. Ensure images fill their container */
.img-container {
  overflow: hidden;
  border-radius: 8px;    /* optional, matches your design aesthetic */
}

.img-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;     /* crop/fill behavior if images differ in ratio */
}
img {
    border-radius: 8px;
}



.contact-email {
    width: 99%;

    padding: 10px;
    border-radius: 100px;

    background-color: var(--transparent);
    border: 1px solid var(--primary-trans);
    color: var(--white);

    font-family: Exat-Light;
    text-decoration: none;
    text-align: center;

    transition: transform 0.3s cubic-bezier(.45,.11,.32,1.55);
}
.contact-email:hover {
    transform: scale(1.01);
    cursor: pointer;
}
.contact-email:active {
    background-color: var(--primary-trans);
    color: var(--white);

    transform: scale(0.96);
}



/* 1) Mobile: horizontal swipe-carousel with scroll-snap */

.fotografija-gallery {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
}

.fotografija-gallery .img-container {
  flex: 0 0 80%;             /* slide = 80% of viewport width */
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
}

.fotografija-gallery .img-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fotografija-gallery::-webkit-scrollbar {
  display: none;
}

/* 2) Desktop / larger screens: grid at 2/3 width */

@media (min-width: 768px) {
  /* If you have a parent like #featured, ensure it’s flexed:
     #featured { display: flex; gap: 2rem; }
     and your text block + .fotografija-gallery split 1/3–2/3.
  */

  .fotografija-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    /* if inside a flex parent, take 2/3 width: */
    flex: 0 0 66.666%;
  }

  .fotografija-gallery .img-container {
    flex: none;
    width: auto;
  }

      .cta {
        max-width: 500px;
    }
}

@media (min-width: 1200px) {
    .content {
        max-width: 1150px;
    }

    nav {
        top: 20px;
        left: 0;
        right: 0;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        height: 70px;
        max-width: 1150px;
    }
    .links {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0px;
    }
    
    header>.content {
        margin-top: 100px;
    }
}