/* CSS Reset*/
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: "barlow condensed";
  color: #272727;
  background-color: #e6e6e6
  ;
  margin-left: 50px;
  margin-right: 50px;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
  font-size: 20px;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

a {
  text-decoration: none;
  color: #272727;
}

a.navlink:hover {
text-decoration: none;
}

.snapsbyile:hover {
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

/*  Font */
@font-face {
  font-family: "barlow condensed";
  font-weight: 200;
  font-style: normal;
  src: url(./font/Barlow_Condensed/BarlowCondensed-Black.ttf) format("truetype");
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  margin-bottom: 50px;
}


.instagram {
height: 22px;
}

.snapsbyile {
color: #2A2A2A;
font-size: 20px;
}

.navlink {
color: #2A2A2A;
margin-left: 20px;
font-size: 20px;
}


/* Gallerie */
.gallery {
column-count: 4; 
column-gap: 15px; 
padding: 20px;
}

.gallery img {
width: 100%; 
  margin-bottom: 15px; 
  display: block;
  break-inside: avoid; 
}

.container-text-img {
display: flex;
align-items: anchor-center;
justify-content: space-between;
padding-top: 50px;
}

.container-text {
justify-content: center;
}

.about-me-title {
font-size: 50px;
}

.img-me {
height: 100%;
width: 400px;
border-radius: 50%;
}

.text-me {
margin-right: 20px;
font-size: 20px;
}

.main-container {
display: flex;
justify-content: space-around;
}

.rectangle {
width: 365px;
height: 510px;
position: relative; 
overflow: hidden; 
}

#aboutme {
background-size: cover;
background-position: center;
}



#portfolio {
background-size: cover;
background-position: center;
}

img#contact {
background-size: cover;
background-position: center;
}

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

.middle-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
opacity: 0; 
transition: opacity 0.5s ease;
}


.rectangle:hover img {
opacity: 0.3;
}

.rectangle:hover .middle-text {
opacity: 1; 
}

.text {
color:  black;
font-size: 30px;
}

/* Lightbox-Styling */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#prev-btn, #next-btn {
    position: absolute;
    top: 50%;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transform: translateY(-50%);
    border-radius: 5px;
}

#prev-btn { left: 20px; }
#next-btn { right: 20px; }


/* Mobile Anpassungen */
@media (max-width: 1260px) {
    .gallery {
        column-count: 3;
    }

    .rectangle {
      width: 300px;
      height: 430px;
    }
}

@media (max-width: 1050px) {
  .rectangle {
    width: 250px;
    height: 380px;
  }
}

@media (max-width: 900px) {
  .rectangle {
    width: 200px;
    height: 300px;
  }
}

@media (max-width: 800px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 767px) {
  .rectangle {
    width: 365px;
    height: 510px;
    margin-bottom: 20px;
  }

  .main-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
    }
}

@media (max-width: 430px) {
  .rectangle {
    width: 300px;
    height: 450px;
}
}
