main {
  > section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    background-color: #e6e6e6;

    padding: 1rem 1rem;

    > .subtitle {
      width: 100%;

      border-left: 0.5rem solid rgb(109, 23, 23);
      padding: 0.5rem 1rem 0.5rem 0.5rem;
    }

    > img {
      @media screen and (max-width: 768px) {
        width: 100%;
      }

      @media screen and (min-width: 769px) and (max-width: 1024px) {
        width: calc(50% - 0.5rem);
      }

      @media screen and (min-width: 1025px) {
        width: calc(25% - 0.75rem);
      }

      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 0.5rem;

      box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    }

    > div.orcamento {
      width: 100%;
      height: auto;

      display: flex;
      align-items: center;
      justify-content: center;

      > a {
        background: linear-gradient(90deg, #000000, #894242);
        display: block;
        text-decoration: none;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
      }
    }
  }
}

dialog#img-preview-dialog {
  width: 100vw;
  height: 100vh;

  box-sizing: border-box;

  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--dialog-z-index);

  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  border: none;
  outline: none;

  &[open] {
    display: flex;
  }
  flex-direction: column;
  align-items: center;
  justify-content: center;

  > img#img-preview-element {
    width: 100%;
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
}
