/* ============================================
   VERTICAL PAINTING LAYOUT
   Used by: december-mood.html, cat-in-the-white-house.html
   ============================================ */

/* --- Mobile base --- */

.painting__layout {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--space-1);
  column-gap: var(--space-3);
  padding: var(--space-3) 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(243, 244, 244, 0.15);
  /* min-height: calc(100vh - var(--header-h) - 4rem); */
}

.painting__left-group {
  width: 100%;
}

.painting__left {
  width: 100%;
  
}

.painting__left a {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 180ms ease;
  outline: none;
  text-decoration: none;
  overflow: hidden;
   width: fit-content;
   
  margin: 0 auto;
}

.painting__left a:hover {
  border-color: var(--border-hover);
}

.painting__left img {
  width: 100%;
  /* width: auto; */
  /* max-width: 100%; */
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 180ms ease;
  max-height: 80vh;
  /* max-height: min(720px, calc(100vh - 200px)); */
  /* object-fit: contain; */
  
}

.painting__left img:hover {
  transform: scale(1.02);
}

/* Horizontal row on mobile */
.painting__filmstrip {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
}

.painting__filmstrip a {
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
}

.painting__filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.painting__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  color: var(--text-light);
}

/* --- 600px --- */

@media (min-width: 650px) {

  .painting__layout {
    
    grid-template-columns: minmax(0, 416px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    /* grid-template-columns: minmax(180px, max-content) 4rem minmax(14rem, 1fr); */
    column-gap: clamp(1rem, 3vw, 2rem);
    row-gap: 0.75rem;
    align-items: start;
  }

  .painting__left-group {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 416px;
    justify-self: center;
    /* padding-right: 8px; */
  }

  .painting__left a {
    /* display: inline-block;
    width: auto;
    max-width: 100%;
    line-height: 0; */
      display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
  margin: 0;
  }

  .painting__left img {
    /* max-height: calc(100vh - 190px);
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain; */
     max-height: none;
    width: 100%;
  height: auto;
  /* max-height: calc(100vh - 190px); */
  object-fit: contain;
  
  }
  .painting__left {
  line-height: 0;
}

  .painting__filmstrip {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
     width: fit-content;
     max-width: 416px;
     justify-self: start;
    justify-content: flex-start;
     gap: var(--space-1);
     margin: 0;
 
    /* width: 64px;
    align-self: start; */
  }

  .painting__filmstrip a {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }

  .painting__right {
    grid-column: 2;
    grid-row: 1/3;
    width: auto;
    max-width: 100%;
    padding-left: clamp(0.5rem, 1vw, 1rem);;
  }
}

/* --- 900px --- */

@media (min-width: 900px) {

  .painting__layout {
    grid-template-columns:  minmax(0, 416px) 4.5rem minmax(18rem, 1fr);
    grid-template-rows: auto;
    column-gap: clamp(1rem, 1.5vw, 1.5rem);
    /* column-gap: clamp(1rem, 3vw, 2rem); */
    row-gap: 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
  }
  .painting__left-group {
  
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 416px;
}

  .painting__filmstrip {
   grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  width: 72px;
  align-self: start;
  justify-content: flex-start;
  margin: 0;
  
  }

  .painting__filmstrip a {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }


  .painting__right {
    grid-column: 3;
    grid-row: 1 / 2;
    width: auto;
    padding-left: clamp(1.5rem, 2.5vw, 3rem);
  }
}

/* --- 1280px --- */

@media (min-width: 1280px) {

  .painting__layout {
     grid-template-columns: minmax(0, 416px) 72px minmax(18rem, 1fr);
   column-gap: clamp(1rem, 3vw, 2rem);
    row-gap: var(--space-4);
  }
  .painting__left-group {
  width: 100%;
    max-width: 416px;
}

.painting__left {
  line-height: 0;
}
  
.painting__filmstrip {
  grid-column: 2;
  grid-row: 1;
}
  .painting__right {
    grid-column: 3;
     grid-row: 1;
    width: auto;
    max-width: none;
    padding-left: clamp(1.5rem, 2.5vw, 3rem);
    text-align: left;
    /* padding-right: var(--space-3); */
  }

}
/* --- 1500px --- */
/* @media (min-width: 1500px) {
  .painting__layout {
    grid-template-columns: minmax(0, 520px) 72px minmax(20rem, 1fr);
    column-gap: 1.5rem;
  
  }

  .painting__left-group {
    max-width: 520px;
    justify-self: start;
  }
  .painting__left a{
    width: 100%;

  }
  .painting__left img{
    width:100%;
    max-height: calc(100vh - var(--header-h) - 2rem);
  }
} */