/*
COLOR PALETTE  CSS Course
Dark green    #3c8453
Sandy beige   #bcaa96
Dark gray     #222222
Light gray    #d3d4d6
Off-white     #f6f6f6
*/
/*
COLOR PALETTE Viana 
Kelp:       #43443b
Edward:     #A7B1B1
Coral Reef: #CBBCA3
Bali Hai:   #7C99AF
*/
:root {
    --eins: #CBBCA3;
    --zwei: #A7B1B1;
    --drei: #7C99AF;
    --vier: #43443b;
    --dark-green: #3c8453;
    --light-green: #7c9f6b;
    --sandy-beige: #bcaa96;
    --dark-gray: #222222;
    --light-gray: #d3d4d6;
    --off-white: #f6f6f6;
}


/*#region GLOBAL STYLES 
------------------------------------*/
html {
    box-sizing: border-box;
    font-size: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
}

body {
    background: #f6f6f6;
    margin: 0;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    /* 14px min 16 px max*/
    line-height: 1.6;
    font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: "Caveat", cursive;
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 3.5rem;
    line-height: .85;
}

h2 {
    font-size: 2.1rem;
    /* line-height: 1; */
}

h3 {
    font-size: 1.8rem;
}

/* links */
a {
    color: #3c8454;
    text-decoration: none;
}

a:hover {
    color: #bcaa96;
    text-decoration: none;
}

footer a {
    color: var(--vier);
}

footer a:hover {
    color: var(--eins);
    text-decoration: none;
}

.btn {
    background: var(--eins);
    color: var(--off-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: .1;
    line-height: 1;
    border-radius: 5px;
}

.btn:hover {
    background: var(--vier);
    color: var(--eins);
}

/* .btn-row {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.btn-row a {
    margin-right: 0.5rem;
    /* adjust this value as needed */
/* } */
.lang-btn {
    background: var(--eins);
    color: var(--off-white);
    text-decoration: none;
    /* font-size: 0.8rem; */
    display: inline-block;
    align-items: center;
    padding-left: 10px;
    margin-top: 7px;
    margin-left: 5px;
    border: none;
    /* letter-spacing: .1; */
    /* line-height: 1; */
    border-radius: 5px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.viana {
    /* background-color: var(--zwei); */
    background-color: gainsboro;
    color: var(--vier);
    /* color: darkseagreen; */
}

.active_nav_link {
    /* color: var(--drei); */
    color: var(--sandy-beige);
    font-weight: bold;
}

.nav-link:hover {
    font-weight: bold;
}

/*#endregion GLOBAL STYLES */

/*#region HOME
------------------------------------*/
.home {
    background: url(../images/viana_sunrise.jpg) no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.home .content-wrapper {
    flex: 1 0 auto;
}

.content-bg {
    background: rgb(255 255 255 / 0.5);
    padding: 30px;
}

@media screen and (max-width: 650px) {
    .home .content-wrapper {
        padding: 10px;
    }

    .content-bg {
        padding: 20px;
    }
}

/*#endregion HOME */
/* #region ABOUT ME
------------------------------------*/
.navtile {
    width: 100%;
    height: 175px;
    object-fit: contain;
}

.hover {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.position-relative:hover .hover {
    opacity: 1;
}

.position-relative:hover .original {
    opacity: 0;
}

/* #endregion ABOUT ME */

/* #region resume 
------------------------------------*/
/* .resume header::before {
    background: url("../images/viana_sunrise.jpg") center / cover;
    display: block;
    height: 175px;
    content: ""; 
 } */
.download-link {
    font-size: 1rem;
    font-weight: bold;
}

/*#endregion  */

/* #region blog 
------------------------------------*/
.blog header::before {
    background: url("../images/viana_sunrise.jpg") center / cover;
    display: block;
    height: 175px;
    content: "";
}

/*#endregion blog */

/* #region standard page
------------------------------------*/
.page-section {
    margin-top: 30px;
    margin-bottom: 10px;
}

.page-section h2 {
    border-bottom: 2px dashed #d3d4d6;
}

@media screen and (max-width: 1280px) {
    .download-link {
        position: absolute;
    }

}

@media screen and (max-width: 500px) {
    .page header::before {
        height: 200px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

/* #endregion page */

/* #region Projects
------------------------------------*/
.projects header::before {
    background: url("../images/projects.jpg") center / cover;
    display: block;
    height: 175px;
    content: "";
}

.project-item {
    display: flow-root;
    margin: 30px 0;
}

.project-item>img {
    margin-right: 20px;
}

.project-item a .btn img {
    width: 32px;
}

.project-item ul {
    list-style-type: square;
    display: block;
    padding-left: 20px !important;
}

@media screen and (min-width: 860px) {
    .project-item {
        display: flow-root;
    }

    .project-item img {
        float: left;
        margin-right: 20px;
    }
}

@media screen and (min-width: 650px) and (max-width: 859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .project-item img {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
    .project-item img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* #endregion Projects */

/* #region Work Experience
------------------------------------*/
.work-item {
    margin: 30px 0;
}

.work-details {
    margin: 0;
}

@media screen and (min-width: 860px) {
    .work-item {
        display: grid;
        grid-template-columns: 300px 1fr;
        column-gap: 20px;
    }

    .work-summary p:first-child {
        margin-top: 20px;
    }
}

/* #endregion Work Experience

/* #region Education
------------------------------------*/
.education-item {
    margin: 30px 0;
}

.education-item p {
    margin: 0;
}

/* #endregion Education

/* #region FOOTER
------------------------------------*/
/* .footer {
    background: #d2d3d5; 
    color: #A7B1B1; 
} */
.socials {
    list-style-type: none;
    padding: 0;
}

.socials li {
    display: inline-block;
    margin-left: 15px;
    margin-top: 15px;
}

.socials img {
    width: 32px;
}

.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    .footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 20px;
    }
}

@media screen and (max-width: 859px) {
    .footer {
        text-align: center;
        padding: 10px;
    }
}

/* #endregion FOOTER
/*#region about me
------------------------------------*/
.avatar {
    display: inline-block;
    vertical-align: middle;
    /* Aligns with text */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Makes it circular */
    overflow: hidden;
    /* Ensures image doesn't overflow the circle */
    border: 3px solid var(--eins);
    /* Dark border */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keeps image nicely centered */
}
.gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}
#lightboxModal .modal-content {
  background-color: #f6f6f6 !important;
  transition: background-color 0.3s ease;
}
#lightboxModal .modal-body {
  background-color: #f6f6f6 !important;
}
#lightboxModal .btn-secondary {
  font-size: 2rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1.2rem;
}

#lightboxModal .btn-secondary:hover {
  opacity: 1;
}
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.3) !important;
}
.gallery-scroll-container {
  max-height: 300px;       /* Adjust as you like (e.g. 250–400px) */
  overflow-y: auto;         /* vertical scroll */
  overflow-x: hidden;       /* no sideways scroll */
  border-radius: 0.5rem;    /* optional, looks clean */
  padding-right: 0.5rem;    /* space for scrollbar */
}

/* Optional: make scrollbars subtle */
.gallery-scroll-container::-webkit-scrollbar {
  width: 8px;
}
.gallery-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.gallery-scroll-container:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
}
/* #prevBtn::before {
  display: block;
  transform: translateY(-2px);
}
#nextBtn::before {
  display: block;
  transform: translateY(-2px);
} */
 #prevBtn {
  padding-top: 0.275rem;    /* Adjust these values */
  padding-bottom: 0.6rem;   /* until it looks centered */
}
#nextBtn {
padding-top: 0.275rem;    /* Adjust these values */
padding-bottom: 0.6rem;   /* until it looks centered */
}

/* Dark gradient bars */
.gallery-caption-bar,
.gallery-meta-bar {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
  /* color: white; */
  /* background: rgba(0, 0, 0, 0.55); */
  color: #6c757d !important;
  background: #f6f6f6 !important;
  backdrop-filter: blur(3px);
  z-index: 20;
}
.gallery-caption-bar {
  top: 0;
}

.gallery-meta-bar {
  bottom: 0;
}

/* Center image */
.gallery-image-wrapper {
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-height: 100%;
  max-width: 100%;
  transition: opacity 0.3s ease-in-out;
}

/* Navigation arrows */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 0.4rem 0.7rem;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  border: none;
  z-index: 30;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-prev-btn {
  left: 0.5rem;
}

.gallery-next-btn {
  right: 0.5rem;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
#galleryClose.gallery-close-btn {
  position: fixed;
  top: 2px;
  right: 20px;
  font-size: 2.5rem;
  line-height: 1;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
}

#galleryClose.gallery-close-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}
body.modal-open {
  overflow: hidden !important;
}