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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  /* transform: scale(1.05); */
  /* font-style: italic; */
  text-decoration: underline;
  color: #4a325b;
}

img {
  display: block;
}

/* fonts  */

.bitter-med {
  font-family: 'Bitter', serif;
  font-weight: 500;
  font-style: normal;
}

.bitter-bold {
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-style: normal;
}

.faculty {
  font-family: 'Faculty Glyphic', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.emilys {
  font-family: 'Emilys Candy', serif;
  font-weight: 400;
  font-style: normal;
}

/* home */
.home-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
}

.left-section {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title-container h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 1.125rem;
}

.right-section {
  display: none;
}

@media (min-width: 980px) {
  .home-container {
    flex-direction: row;
  }

  .left-section {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    align-items: stretch;
    justify-content: stretch;
  }

  .title-container {
    grid-column: 3 / span 3;
    grid-row: 4;
    align-items: flex-start;
    text-align: left;
  }

  .title-container h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0;
  }

  .nav-links {
    margin-left: 0.25rem;
    margin-top: 0.2rem;
    font-size: 1.3rem;
  }

  .right-section {
    display: block;
    width: 40%;
    height: 100vh;
    overflow: hidden;
  }
}

.hero-image {
  height: 100%;
  width: auto;
  position: relative;
  bottom: -1rem;
  right: 25px;
  object-fit: cover;
}

/*  about */
.about-container {
  padding: 1rem;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
}

@media (min-width: 980px) {
  .about-container {
    flex-direction: row;
    padding: 0.5rem;
    height: 100vh;
  }
}

.home-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 1.2rem;
  color: #4c4c4c;
}

.portrait-section {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

@media (min-width: 980px) {
  .portrait-section {
    width: 25%;
    max-width: none;
  }
}

.portrait-section img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.info-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

@media (min-width: 980px) {
  .info-section {
    padding-left: 1.25rem;
    width: 25%;
    max-width: none;
    text-align: left;
  }
}

.info-section h1 {
  font-size: 1.5rem;
}

.info-section p {
  font-size: 1.2rem;
  text-align: justify;
  text-wrap: pretty;
  margin-top: 0.5rem;
  line-height: 1.5rem;
}

/* art page indiv */
.artwork-page-container {
  width: 100vw;
  height: 100vh;
  padding: 1rem;
}

.artwork-layout-wrapper {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.artwork-sidebar {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .artwork-sidebar {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    max-width: 20%;
    margin-bottom: 0;
    text-align: left;
  }
}

.artwork-title {
  font-size: 2.8rem;
  line-height: 1.2;
}

.artwork-materials {
  font-size: 1.5rem;
  /* font-style: italic; */
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
  font-weight: normal;
}

.artwork-description {
  margin-bottom: 0.1rem;
  /* text-align: justify; */
}

.back-link {
  color: #4c4c4c;
  padding-left: 0px;
}

@media (min-width: 768px) {
  .back-link {
    font-size: 0.875rem;
  }
}

.artwork-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .artwork-display {
    min-width: 80%;
  }
  
}

.artwork-image-wrapper {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.artwork-image-wrapper img
 {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
}
.artwork-image-wrapper video {
 max-height: 90%;
  max-width: 90%;
  height: auto;
  width: auto;}

/* Contact Page Styles */
.contact-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.contact-content {
  width: 100%;
  max-width: 500px;
}

.contact-content h1 {
  font-size: 2.25rem;
}

.contact-content p {
  margin-bottom: 1.5rem;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #d1d1d1;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--form-focus);
}

.submit-button {
  padding: 0.75rem;
  background: #292929;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.submit-button:hover {
  opacity: 0.9;
}

/* gallery  */
.gallery-container {
  padding: 2rem;
  width: 100%;
}

.gallery-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.gallery-header .home-link {
  margin-bottom: 1rem;
  display: inline-block;
}

.gallery-header h1 {
  font-size: 3rem;
}

.gallery-grid {
  columns: 1;
  column-gap: 1.5rem;
  max-width: 1500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease-in-out;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.01);
  cursor: pointer;
}
