.content-grid {
  --padding-inline: 1rem;
  --content-max-width: 1200px;
  --breakout-max-width: 1300px;

  --breakout-size: calc(
    (var(--breakout-max-width) - var(--content-max-width)) / 2);

  display: grid;
  grid-template-columns:
    [full-width-start] minmax(var(--padding-inline), 1fr)
    [breakout-start] minmax(0, var(--breakout-size))
    [content-start] min(
      100% - (var(--padding-inline) * 2),
      var(--content-max-width)
    )
    [content-end]
    minmax(0, var(--breakout-size)) [breakout-end]
    minmax(var(--padding-inline), 1fr) [full-width-end];
}

.content-grid > :not(.breakout, .full-width),
.full-width > :not(.breakout, .full-width) {
  grid-column: content;
}

.content-grid > .breakout {
  grid-column: breakout;
}

.content-grid > .full-width {
  grid-column: full-width;

  display: grid;
  grid-template-columns: inherit;
}

img.full-width {
  width: 100%;
  max-height: 45vh;
  object-fit: cover;
}

:root {
  --color-scheme: dark;

  --font-family: system-ui;

  --fs-300: clamp(0.94rem, calc(0.92rem + 0.08vw), 0.98rem);
  --fs-400: clamp(1.13rem, calc(1.06rem + 0.33vw), 1.31rem);
  --fs-500: clamp(1.35rem, calc(1.21rem + 0.69vw), 1.75rem);
  --fs-600: clamp(1.62rem, calc(1.37rem + 1.24vw), 2.33rem);
  --fs-700: clamp(1.94rem, calc(1.54rem + 2.03vw), 3.11rem);
  --fs-800: clamp(2.33rem, calc(1.7rem + 3.15vw), 4.14rem);
  --fs-900: clamp(2.8rem, calc(1.85rem + 4.74vw), 5.52rem);

  --clr-primary-300: hsl(219, 76%, 55%);
  --clr-primary-400: hsl(219, 76%, 40%);
  --clr-primary-500: hsl(219, 76%, 25%);
  --clr-secondary-300: hsl(269, 75%, 55%);
  --clr-secondary-400: hsl(269, 75%, 40%);
  --clr-secondary-500: hsl(269, 75%, 25%);
  --clr-accent-200: hsl(358, 85%, 80%);
  --clr-accent-300: hsl(358, 72%, 65%);
  --clr-accent-400: hsl(358, 72%, 50%);
  --clr-accent-500: hsl(358, 72%, 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: var(--color-scheme);
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-400);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.site-title {
  line-height: 1.05;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--fs-800);
  line-height: 1.1;
}

.bg-primary {
  background: var(--clr-primary-500);
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.call-to-action {
  padding: 1rem;
  background: hsl(0 0% 100% / 0.15);
}

.wrapper {
  width: calc(100% - 3rem);
  max-width: 900px;
  margin-inline: auto;
}

.flow > * + * {
  margin-top: var(--flow-spacing, 1em);
}

.section-padding {
  padding-block: 2.5rem;
}

.primary-header {
  padding-block: 1rem;
  margin-block-end: 3rem;
  background-color: rgba(0, 153, 255, 0.9);
  color: rgb(255,255,255);
  border-bottom: 1.5px solid #0d0d0d;
  max-height: 125px;
  z-index: 1;
}

.primary-header__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-width: 250px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: max(5vw, 1rem);
}

nav a {
  color: rgb(255,255,255);
  text-decoration: none;
}

nav a:hover,
nav a:focus,
nav .active a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}


.even-columns {
  display: flex;
  gap: 1rem;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  color: #0099e1;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

header h1 {
  text-shadow: 1px 1px 5px #000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lobster', cursive;
}

#headerimage {
  z-index: 3;
  background-image: url(images/Me/SAM_0757.JPG);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 525px;
  width: 100%;
  box-shadow: 0px 2px 10px 2px rgb(0 0 0 / 75%);
  margin-bottom: 25px;
}

.projectimage {
  background-position: center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-color: rgba(0, 153, 255, 0.3);
  cursor: pointer;
  width: 100%;
  height: 250px;
  border: 1.5px #0099e1 solid;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
  transition: background-size .3s ease-in-out;
}

@media only screen and (min-width: 768px) {
  .projectimage {
    opacity: 1;
  }
}

.projectimage:hover {
  background-size: auto 125%;
}

.label {
  background-color: #0099e1;
  color: #fff;
  width: 250px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  bottom: 25px;
  right: -60px;
  white-space: nowrap;
  z-index: 1;
  transform: rotate(313deg);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #0d0d0d;
  background-color: rgba(13, 13, 13,0.4);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  float: right;
  color: #aaaaaa;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.close2 {
  color: #0099e1;
  font-size: 28px;
  background-color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
}

.close2:hover,
.close2:focus {
  color: #0d0d0d;
}

.image {
  margin: auto;
  max-width: 70%;
}

.card {
  width: 80%;
  margin-left: 10%;
  color: #0d0d0d;
  text-align: center;
}
