/* Font and Body */

/* inria-serif-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inria-serif-v17-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inria-serif-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/inria-serif-v17-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inria-serif-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inria-serif-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inria-serif-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inria-serif-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inria-serif-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inria-serif-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inria-serif-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/inria-serif-v17-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-pro-300 - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    src: local(''),
    url('../fonts/source-sans-pro-v21-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/source-sans-pro-v21-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* source-sans-pro-300italic - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 300;
    src: local(''),
    url('../fonts/source-sans-pro-v21-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/source-sans-pro-v21-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* source-sans-pro-regular - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('../fonts/source-sans-pro-v21-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/source-sans-pro-v21-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* source-sans-pro-italic - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 400;
    src: local(''),
    url('../fonts/source-sans-pro-v21-latin-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro-v21-latin-italic.woff') format('woff');
}

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

p {
    font-size: 1.1rem;
    font-family: "Inria Serif", serif;
    line-height: 1.5;
    color: #000;
    padding-top: 10px;
}

body {
    font-family: "Inria Serif", serif;
}

/* Headline */

h1 {
    font-size: calc(1.1rem + 4vw);
    font-family: "Inria Serif", serif;
}

/* Special styling for index h1 */
.index-page h1 {
    color: #0d6efd;
    font-family: "Inria Serif", serif;
}

/* Special styling for portfolio h1 */
.portfolio-page h1 {
    padding-left: 8%;
    margin-top: 40px;
    font-family: "Inria Serif", serif;
}

h2 {
    font-size: calc(0.8rem + 2vw);
    font-family: "Inria Serif", serif;
    color: #000;
}

h3 {
    font-size: 1.6rem;
    color: #000;
    margin-bottom: 0.6rem;
    font-family: "Inria Serif", serif;
}

h4 {
    font-size: 0.4rem;
    color: #000;
    margin-bottom: 0.6rem;
    font-family: "Inria Serif", serif;
}

/* Special styling for portfolio p */
.portfolio-page p {
    padding-left: 8%;
    padding-right: 5%;
    margin-top: 20px;
    font-family: "Inria Serif", serif;
}

/* Navbar rules begin */

.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    color: #000;
}

.navbar-nav .nav-link:hover {
    color: #64B08D;
}

.navbar-nav .nav-link.active {
    color: #8B4E93 !important;
}

/* Custom NavBar background color */

.bg-custom {
    background-color: #CEDDDF;
}

/* Custom text color rules begin */

.text-container {
    padding-right: 5%;
    margin-left: 3rem;
    width: auto;
    justify-content: center;
    align-items: center;
}

/* Responsive image gallery rules begin*/

.image-gallery {
    /* Mobile first */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-gallery .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-item img {
    width: 100%;
    border-radius: 5px;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Image Gallery */

.portfolio-img-container {
    padding: 12px 5% 40px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Other images */
.featured-image {
    margin-top: 30px;
}

ul {
    list-style: none;
}

.portfolio-image-gallery {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.portfolio-image-gallery > li {
    flex-basis: 350px; /* increased from 300px */
    flex-grow: 1;
    cursor: pointer;
    position: relative;
}

.portfolio-image-gallery li img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 5px;
}

.portfolio-image-gallery::after {
    content: "";
    flex-basis: 350px;
}

/* Responsive adjustments for portfolio gallery */
@media (max-width: 768px) {
    .portfolio-image-gallery > li {
        flex-basis: 100%;
    }

    .portfolio-image-gallery::after {
        flex-basis: 100%;
    }
}

/* overlay styles */

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    color: #fff;
    border-radius: 5px;
    /* center overlay text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover */
.portfolio-image-gallery li:hover .overlay {
    transform: scale(1);
}

/********* Simple overlay *******/

/* Main container */
.overlay-image {
    position: relative;
    width: 100%;
}

/* Original image */
.overlay-image .image {
    display: block;
    width: 100%;
    height: auto;
}

/* Original text overlay */
.overlay-image .text {
    color: #fff;
    font-size: 30px;
    line-height: 1.5em;
    text-shadow: 2px 2px 2px #000;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/********* Overlay on hover *******/

/* New overlay on hover */
.overlay-image .hover {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
}

/* New overlay appearance on hover */
.overlay-image:hover .hover {
    opacity: 1;
}

/********* Background and text only overlay on hover *******/

.overlay-image .normal {
    transition: .5s ease;
}
.overlay-image:hover .normal {
    opacity: 0;
}
.overlay-image .hover {
    background-color: rgba(0,0,0,0.5);
}

.overlay-image .static-text {
    display: none;
}

/* Footer rules begin */

.footer {
    background-color: #CEDDDF;
    color: white;
    padding: 20px;
    margin-top: 50px;
    position: relative;
}

/* Ensure minimum distance between navbar and footer for specific pages */
.about-page .footer,
.contact-page .footer,
.portfolio-page .footer {
    margin-top: 800px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 40px;
}

.footer-text {
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #000;
}

/* Lightbox rules begin */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.hidden {
    display: none;
}

@media only screen and (min-width: 768px) {
    .image-gallery {
        flex-direction: row;
    }
}
