/*
Theme Name: Giuseppe Masia Portfolio
Theme URI: https://giuseppemasia.com
Author: Giuseppe Masia
Author URI: https://giuseppemasia.com
Description: A minimal UX designer portfolio theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giuseppe-masia
Tags: portfolio, minimal, one-column
*/

/* ─── Design Tokens ─── */
:root {
  --text-black: rgba(0, 0, 0, 1);
  --card-shadow: 0px 0px 21px -6px rgba(0, 0, 0, 0.5);
  --card-bg: rgba(214, 214, 214, 0.8);
  --card-radius: 7px;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #fff;
  color: var(--text-black);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Layout ─── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 80px;
  gap: 10px;
}

@media (max-width: 1440px) {
  .site-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 24px;
  }
}

/* ─── Header / Nav ─── */
.site-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 5px 5px 0;
}

.site-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--text-black);
}

.site-title a {
  color: inherit;
}

.site-tagline {
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 22px;
  line-height: 30px;
  color: var(--text-black);
}

/* ─── Navigation ─── */
.main-navigation {
  display: flex;
  align-items: flex-start;
  /*padding-top: 20px;*/
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-navigation ul li a {
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-black);
  transition: opacity 0.2s ease;
}

.main-navigation ul li a:hover {
  opacity: 0.6;
}

.nav-fallback {
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-black);
  /*padding-top: 20px;*/
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
  }
  .main-navigation ul {
    gap: 12px;
  }
}

/* ─── Main Content ─── */
.site-main {
  display: flex;
  flex-direction: column;
  gap: 90px;
  padding-top: 60px;
  width: 100%;
}

/* ─── Hero Bio ─── */


/* ─── Portfolio Cards ─── */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.portfolio-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.portfolio-card a {
  display: contents;
}

.card-thumbnail {
  flex: 0 0 auto;
  width: 40%;
  box-shadow: var(--card-shadow);
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 0;
  flex: 1;
}

.card-title-blurb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px;
  border-left: 1px solid var(--text-black);
}

.card-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: var(--text-black);
}

.card-blurb {
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 22px;
  color: var(--text-black);
}

/* ─── Tags ─── */
.card-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.tag--border {
    border: 1px solid var(--text-black) !important;
    padding: 10px 10px !important;
}

.tag {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  border-radius: 100px;
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 12px;
  color: var(--text-black);
  white-space: nowrap;
}

/*.tag img,*/
/*.tag svg {*/
/*  width: 14px;*/
/*  height: 14px;*/
/*}*/

/* ─── Responsive Cards ─── */
@media (max-width: 900px) {
  .portfolio-card {
    flex-direction: column;
  }

  .card-thumbnail {
    width: 100%;
  }

  .card-details {
    padding: 16px 0;
  }
}

/* ─── WordPress Page Content ─── */


/*.entry-content h1,*/
/*.entry-content h2,*/
/*.entry-content h3 {*/
/*  font-weight: 700;*/
/*  margin-bottom: 0.5em;*/
/*}*/

.entry-content p {
  margin-bottom: 1em;
}

/* ─── Footer ─── */
.site-footer {
  margin-top: auto;
  padding-top: 60px;
  padding-bottom: 20px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}


/* custom css */
li {
    margin: 20px 0 20px 20px;
}
/* more custom  horizontal scrolling */
@media (max-width: 767px) {
  .g-scroll-outer {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    background: none !important;
    /* Centre the first snap point */
    padding-left: calc(50vw - 40vw) !important;  /* half outer - half item */
    padding-right: calc(50vw - 40vw) !important;
  }

  .g-scroll-inner {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: fit-content !important;
    max-width: none !important;
    /*background-color: #f0f0f0 !important;*/
    border-radius: 16px !important;
    /*padding: 16px !important;*/
    gap: 16px !important;
  }

  .g-scroll-item {
    width: 80vw !important;
    max-width: 80vw !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .g-scroll-item img {
    width: 100% !important;
    height: auto !important;
  }
}
