html {
  scroll-behavior: smooth;
}

/* Brand Colors */

:root {
    --dev-soul:#121415;
    --dev-bone:#F4F4F4;
    --dev-blood:#CE4151;
    --dev-soul-50:#8B8D8D;
    --dev-soul-90:#151819;

}

body {
    font-family: Josefin Sans, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--dev-bone);
    line-height: 1.6rem;
    margin: 0;
    padding: 0;
    background-color: var(--dev-soul);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 50%;
}

/* Paragraph text */

p {
    margin: 0 0 20px 0;
  }
p.large {
    font-size: 1.3em;
    margin-bottom: 36px;
}

span.red-text {
    color: var(--dev-blood);
}

/* H1 headings */

h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}


/* Headings */

h2{
    font-family: 'Unica One', sans-serif;
    font-weight: 100;
    text-align: center;
    font-size: 96px;
    line-height: 102px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 30px 0;
}

h3{
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin:0 0 8px 0;
}

h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 2px;
    color: var(--dev-blood);
    text-transform: uppercase;
    margin:30px 0 10px 0;
}

span {
  color: var(--dev-blood);
}
.tagline p {
    color: var(--dev-blood);
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-align: center;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

ul {
  list-style-type: none;
  padding-left: 0.5em;
  margin: 10px 0;
}
li {
    margin-bottom: 12px;
}

span.para-emph {
    font-style: italic;
    margin-right: 2px;
}

/* Text links */
a {
    font-family: 'Josefin Sans', serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: var(--dev-blood);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dev-bone);
}
a:focus {
    outline: none;
    box-shadow: none;
}

/* Sections styling */

section {
    width: 100%;
    display: flex;
    justify-content: center;
}

section.alt-section {
    background: var(--dev-soul-90);
}

section .sect-wrapper {
    width: 90%;
    max-width: 1600px;
    height: auto;
    padding: 120px 0;
}
button {
    background: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    outline: none;
    box-shadow: none;
    padding:8px 16px;
}
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--dev-blood);
}
a.devillin-button {
    padding: 10px 30px;
    border: 2px solid var(--dev-blood);
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--dev-blood);
}
a.devillin-button:hover {
    border: 2px solid var(--dev-bone);
    color: var(--dev-bone);
}
a.devillin-button-alt {
    background: var(--dev-blood);
    padding: 10px 30px;
    border: 2px solid var(--dev-blood);
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--dev-bone);
}
a.devillin-button-alt:hover {
    background: var(--dev-bone);
    border: 2px solid var(--dev-bone);
    color: var(--dev-soul);
}

.section-title {
    display: flex;
    align-items: center;
    margin: 96px 0 60px 0;
    text-align: left;
}
.section-title h1 {
    font-size: 28px;
    line-height: 28px;
    white-space: nowrap;
    margin: 0 30px 0 0;
}
.section-title-line {
    height: 2px;
    width: 100%;
    margin: 5px 0;
    background-color: var(--dev-blood);
}

/* Sections styling */
/*header {
    background-image: url('../_img/devillin-labs-hero-background.jpg');
    background-size: cover;
    height: 70vh;
    width: 100%;
    background-color: var(--dev-soul);
    color: var(--eyes);
}*/
.container-hero {
    background-image: url('../_img/devillin-labs-hero-title.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width:100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}
.hero-graphic {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0%;
    z-index: 10;
}
.hero-graphic img.hero-title-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
h1.hero-child {
    padding: 12px 48px;
    font-size: 18px;
    letter-spacing: 0.2rem;
    z-index: 20;
}
.top-gap {
    margin-top: 200px;
}

header {
    width: 100%;
    background-color: var(--dev-soul);
}
section.home-hero {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 24px;
}
.hero-frame-top, .hero-frame-bottom, .hero-frame-middle {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}
.hero-frame-top, .hero-frame-bottom {
    height: 140px;
}
.hero-frame-top {
    align-items: flex-start;
}
.hero-frame-bottom {
    align-items: flex-end;
}

.hero-frame-middle {
    height: 54vh;
    justify-content: space-between;
}
.hero-corner-0 {
    width: 140px;
    height: 140px;
    background-image: url('../_img/frame/corner.svg');
    background-position: top left;
    background-repeat: no-repeat;
}
.hero-corner-90 {
    width: 140px;
    height: 140px;
    background-image: url('../_img/frame/corner.svg');
    background-position: top left;
    background-repeat: no-repeat;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
}
.hero-corner-180 {
    width: 140px;
    height: 140px;
    background-image: url('../_img/frame/corner.svg');
    background-position: top left;
    background-repeat: no-repeat;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
}
.hero-corner-270 {
    width: 140px;
    height: 140px;
    background-image: url('../_img/frame/corner.svg');
    background-position: top left;
    background-repeat: no-repeat;
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
}
.divider-top, .divider-bottom {
    height: 4px;
    flex: 1;
    background-color: #2F3030;
}
.divider-left, .divider-right {
    width: 4px;
    height: 100%;
    background-color: #2F3030;
}
.hero-middle {
    height: 100%;
    width: 95%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.hero-middle-image {
    width: 30%;
    max-height: 100%;
}

.scroll-button-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.scroll-button {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

/* Button Links */

.button, .btn {
    white-space: nowrap;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--dev-bone);
    text-decoration: none;
    display: inline-block;
    padding: 18px 32px;
    margin: 10px;
    border: 2px solid var(--dev-blood);
    transition-duration: 0.2s;
}
.button:hover {
    background-color: var(--dev-blood);
}
.btn:hover {
    background-color: var(--dev-blood);
}
.button:focus, .btn:focus {
    outline: none;
}

.service-block h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--dev-soul);
    margin: 0 0 20px 0;
}

.process-block h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--dev-blood);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
}


/* Universal Styling */

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.hero-logo {
    margin-top: 80px;
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
} 
.logo-project {
    margin-top: 160px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px); /* Adjust the initial position */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero CSS */

#hero {
    width: 100%;
    height: 100px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1000;
}

.hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero {
    object-position: top;
}

.project-hero img {
    opacity: 0.5;
}

.welcome-buttons {
    margin-top: 40px;
}

.return-home {
    margin-top: 40px;
    width: 60px;
    height: 60px;
}

.return-home-icon {
    width: 100%;
}

/* Maestro Section */
.section-maestro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-image: url('../_img/devillin-labs-danny-background-dark.jpg');
    background-size: cover;
}

.welcome-cta-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: no-wrap;
    justify-content: center;
    align-items: center;
    padding: 24px 0 120px;
}

.maestro-cta-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: no-wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 60px;
    padding-top: 60px;
}
.maestro-cta-block {
    margin-right: 60px;
}

/* Featured Exhibits CSS */

.exhibit-grid {
    gap: 0px;
}
.exhibit-wrapper {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.exhibit-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.exhibit-text-wrapper {
    display: flex;
    flex-direction: column;
    align-content: center;
    padding: 60px;
}

.project-thumb {
    display:  flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.thumb-bg-img {
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumb-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumb-logo img {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-thumb-heading {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumb-meta-block {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--dev-bone);
    text-transform: uppercase;

}
.thumb-meta-block h3 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 20px;

}

.project-thumb:hover .thumb-bg-img {
    transform: scale(1.08);
    opacity: 0.2;
}

.project-thumb:hover .thumb-logo {
    transform: translateY(-150%);
    opacity: 0;
}

.project-thumb:hover .project-thumb-heading {
    transform: translateY(-150%);
    opacity: 0;
}

.project-thumb:hover .thumb-meta-block {
    transform: translateY(-20%);
    opacity: 1;
}

.gallery-link-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}
.gallery-link-decor {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.gallery-btn {
    margin: 0 20px;
}

/* Individual Projects CSS */

.details-container {
    width: 100%;
}
.details-container h1 {
    font-size: 28px;
    line-height: 34px;
}
.details-container h2 {
    font-family: 'Josefin Sans', sans-serit;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--dev-blood);
    margin: 0 0 20px 0;
}
.details-container p {
    margin-right:100px;
}

.project-details-wrapper {

    border-top: 2px solid var(--dev-blood);
    display: flex;
    padding-top: 20px;
    margin-bottom: 60px;
}
.detail-labels {
    font-family: 'Bitter', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--dev-blood);
    width: 25%;
}
.detail-specs {
    width: 75%;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

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

.project-portfolio {
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
}
.project-gallery {
    gap: 20px;
}
.project-portfolio img {
    width: 100%;
    height: auto;
}

/* Services CSS */

.intro-keyword-left {
    margin-right: 48px;
}
.intro-keyword-right {
    margin-left: 48px;
}


/* Process CSS */

.process-block {
    background-color: rgba(99,128,141,0.25);
    padding: 30px;
}

.process-block h3, .process-block p {
    text-align: left;
}
.process-icon {
    height: 50px;
    margin-bottom: 30px;
}

/* About CSS */

.about-info {
    z-index: 1;
}

.about-pic img {
    width: 100%;
    height: auto;
    margin-top: -100px;
}

/* Footer CSS */

.foot-logo {
    grid-column: span 1;
}
.foot-tags-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.foot-name {
    margin-bottom: 20px;
}
.foot-tags {
    font-size: 0.8rem;
    line-height: 1.4rem;
    margin-bottom: 40px;
}
.foot-text-container {
    grid-column: span 1;
    border-top: 2px solid var(--dev-blood);
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: top;
}

.foot-wordmark {
    width: 50%;
}

.foot-base {
    width:100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size:14px;
}

.foot-base img {
    height: 60px;
}

/* Filtered Gallery with Lightbox */

.portfolio-filters {
    width:90%;
    max-width: 840px;
    margin:0 auto 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.portfolio-filters button {
  color: #fff;
  border: none;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.portfolio-filters button:hover,
.portfolio-filters button.active {
  background: #555;
}
.portfolio-filters-divider {
    width: 2px;
    height: 100%;
    background: var(--dev-blood);
}
.portfolio-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
}
.portfolio-item {
    background: #222;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: calc(33.333% - 2rem);
    box-sizing: border-box;
    opacity: 1;
}
.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.portfolio-item img {
  max-width: 100%;
  display: block;
}
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox-content {
  position: relative;
  width: 80%;
  height: 94%;
}
.lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
#close-lightbox {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Portfolio Item Page */

.portfolio-item-hero {
    width: 100%;
    height: 40vh;
    max-height: 680px;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.portfolio-item-hero-bg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
}
.portfolio-item-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-item-hero-text {
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portfolio-item-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;

}
h1.portfolio-item-category {
    text-align: center;
    color: var(--dev-blood);
}
h2.portfolio-item-title {
    text-align: center;
}
section.portfolio-item-details-left, section.portfolio-item-details-right, section.portfolio-item-details-center {
    width: 80%;
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px auto;
    gap: 60px;
}
section.portfolio-item-details-left {
    flex-direction: row;
}
section.portfolio-item-details-right {
    flex-direction: row-reverse;
}
section.portfolio-item-large-wrapper {
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}
section.portfolio-item-two-up {
    align-items: stretch;
    height: auto%;
    width: 50%;
    overflow: hidden;
}
section.portfolio-item-two-up img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
section.portfolio-item-video-wrapper {
  display: flex;
  flex-direction: row;
  width: 90%;
  margin: 60px auto;
  gap: 0;
}

/* Left-side content */
.portfolio-item-details-video-wrapper {
    width: 30%;
    display: flex;
    flex-direction: column;
}

/* Right-side video container */
.portfolio-item-video-embed-wrapper {
  width: 70%;
  display: flex;
  align-items: top;
  justify-content: center;
}

/* Responsive video wrapper */
.portfolio-video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.portfolio-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portfolio-item-details-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
}
.portfolio-item-details-wrapper ul, .portfolio-item-details-video-wrapper ul {
    color: var(--dev-blood);
    list-style-type: none;
    margin: 0 0 24px 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12rem;
}
.portfolio-item-details-wrapper li, .portfolio-item-details-video-wrapper li {

}
.portfolio-item-details-wrapper i, .portfolio-item-details-video-wrapper i {
    margin-right: 12px;
}
span.portfolio-item-details-label {
    font-family: 'Unica One', sans-serif;
    font-weight: 200;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.2rem;
    color: var(--dev-bone);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.portfolio-item-image-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portfolio-item-video-wrapper {
    aspect-ratio: 16 / 9;
}
.portfolio-item-video-wrapper iframe {
    width: 100%;
    height: 100%;
}
/* Portfolio Thumbnail Hover Animation */
.portfolio-item {
  position: relative;
  overflow: hidden;
}

.thumbnail-overlay {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.thumbnail-overlay img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.text-block {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: bold;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.default-text {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hover-text {
  bottom: -50%;
  transform: translateX(-50%);
  opacity: 0;
}

.portfolio-item:hover img {
  opacity: 0.2;
}

.portfolio-item:hover .default-text {
  top: -50%;
  opacity: 0;
}

.portfolio-item:hover .hover-text {
  bottom: 50%;
  opacity: 1;
  transform: translate(-50%, 50%);
}
.thumbnail-overlay {
  overflow: hidden;
}

.thumbnail-overlay img {
  transition: transform 0.3s ease, opacity 0.5s ease;
}
.portfolio-category {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--dev-bone);
  margin-bottom: 4px;
  letter-spacing: 2px;
  font-weight: 300;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Portfolio Masonry Grid */
.portfolio-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 60px;
  width: 100%;
  margin: 0 auto;
}

/* Grid item defaults */
.portfolio-grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.portfolio-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placement of items in the grid */
.portfolio-1x1 {
  aspect-ratio: 1 / 1;
}

.portfolio-1x2 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  aspect-ratio: 1 / 2; /* tall — double height */
}

.portfolio-2x1 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  aspect-ratio: 2 / 1; /* wide — same height as 1x1s */
}

/* Grid Containers */
.grid-container-half, .grid-container-third, .grid-container-quarter {
  display: grid;
  gap: 20px;
}

.grid-container-half { 
  grid-template-columns: repeat(2, 1fr);
}

.grid-container-third {
  grid-template-columns: repeat(3, 1fr);
}

.grid-container-quarter {
  grid-template-columns: repeat(4, 1fr);
}

/* Welcome Section */

section.intro-paragraph {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.intro-paragraph-wrapper {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
}
.intro-paragraph-wrapper p {
    text-transform: center;
}


/* Responsive – up to 1200px */


@media screen and (max-width: 1200px) {
    h1 {
        font-size: 14px;
        line-height: 16px;

    }
    h2 {
        font-size: 72px;
        line-height: 74px;
    }
    a.devillin-button, a.devillin-button-alt {
        width: 100%;
    }
    .foot-logo {
        grid-column: span 1;
    }
    .foot-text-container {
        grid-template-columns: 1fr;
    }
    .maestro-cta-wrapper {
        flex-direction: column;
        flex-wrap: no-wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 36px;
    }   
    .maestro-cta-block {
        justify-content: flex-start;
    }
    .foot-base {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        font-size: 14px;
        text-align: center;
    }
    .footer-logo { order: 1; }
    .footer-text { order: 2; }
    .footer-logo {
        margin-bottom: 24px;
    }
    .footer-text {
        font-size: 12px;
    }
    .portfolio-filters button {
        font-size: 0.7em;
    }
    .portfolio-gallery {
        gap: 48px;
    }
    .portfolio-item {
        width: calc(50% - 2rem);
    }
    section.portfolio-item-details-left, section.portfolio-item-details-right, section.portfolio-item-video-wrapper {
        flex-direction: column-reverse;
        gap: 24px;
        align-items: center;
    }
    .portfolio-item-details-wrapper, .portfolio-item-details-video-wrapper, .portfolio-item-video-embed-wrapper {
        width: 100%;
    }
    .portfolio-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }

    .portfolio-grid-item {
        aspect-ratio: 1 / 1;
    }

    .portfolio-1x1,
    .portfolio-2x1,
    .portfolio-1x2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .grid-container-third {
        grid-template-columns: 100%;
    }
    .grid-container-quarter {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-col-first {
        margin-bottom: -28px;
    }

}

/* Responsive – up to 768px */

@media screen and (max-width: 768px) {
    .hero-frame-middle {
        height: 50vh;
        justify-content: space-between;
    }
    .hero-frame-top, .hero-frame-bottom {
        height: 70px;
    }
    .hero-corner-0, .hero-corner-90, .hero-corner-180, .hero-corner-270 {
        width: 70px;
        height: 70px;
    }
    .hero-middle {
        margin: 0 40px;

    }
    .hero-middle {
    flex-direction: column;
    }
    .hero-middle-image {
        width: 100%;
        height: 30%;
    }
    .divider-left, .divider-right {
        width: 2px;
    }
    .divider-top, .divider-bottom {
        height: 2px;
    }

    .container-hero {
        background-size: contain;
        gap: 10px;
    }
    .scroll-button {
        width: 36px;
        height: 36px;
    }
    h1.hero-child {
      padding: 20px;
      font-size: 14px;
      letter-spacing: 0.2rem;
    }
    h2 {
        font-size: 48px;
        line-height: 52px;
    }
    .section-title {
        margin-top: 10px;
    }
    .section-title h1 {
        font-size: 24px;
        line-height: 24px;
        white-space: wrap;
        margin: 0 30px 0 0;
    }
    .section-maestro {
        height: auto;
        padding: 60px 0px;
        background-image: url('../_img/devillin-labs-danny-background-dark.jpg');
        background-size: cover;
        background-position: 80% 100%;
    }
    .welcome-cta-wrapper {
        flex-direction: column;
        flex-wrap: no-wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 36px;
    }   
    .about-pic {
        margin-top: 0;
    }
    .foot-base {
        grid-column: span 1;
    }
    .btn {
        font-size: 0.9rem;
        margin-right: 0;
    }
    .gallery-btn {
        margin: 0 20px;
    }
    .details-container {
        width: 100%;
    }
    .portfolio-filters {
        flex-direction: column;
        gap: 20px;
    }
    .portfolio-gallery {
        gap: 36px;
    }
    .portfolio-item {
        width: calc(100% - 2rem);
    }
    section.portfolio-item-large-wrapper {
        flex-direction: column;
    }
    h1.portfolio-item-title {
        font-size: 64px;
        line-height: 68px;

    }
    h2.portfolio-item-subtitle {
        font-size: 16px;

    }
    span.portfolio-item-category {
        font-size: 16px;
        letter-spacing: 0.2em;
        margin-bottom: 12px;
    }
    .portfolio-masonry-grid {
    grid-template-columns: 1fr;
    }
    .maestro-cta-block {
        margin: 0;
    }

    .grid-container-half, .grid-container-quarter {
        grid-template-columns: 100%;
    }
    .intro-keyword-right, .intro-keyword-left {
        margin: 0;
    }
}

@supports not (aspect-ratio: 16 / 9) {
  .portfolio-item-video-wrapper { 
        position: relative; 
        padding-bottom: 56.25%; 
        padding-top: 30px; 
        height: 0; 
        overflow: hidden; 
    }
  .portfolio-item-video-wrapper > iframe { 
        position: absolute; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
    }
  .grid-container-half, .grid-container-quarter {
        grid-template-columns: 100%;
    }
}



