.dialog-container,
.dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
 
/* positioning of modal container */ 
.dialog-container {
  z-index: 10001; 
  display: flex;
}
 
.dialog-container[aria-hidden='true'] {
  display: none;
}
 
/* background of the page once modal is open */ 
.dialog-overlay {
  background-color: rgb(43 46 56 / 0.9);
  animation: fade-in 200ms both;
}
 
/* styling of modal's container */
.dialog-content {
  margin: auto;
  z-index: 2;
  position: relative;
  background-color: white;
  background-size: cover;

  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
  padding: 1em;
  max-width: 90%;
  width: 800px;
  border-radius: 5px;
  overflow: hidden;

  /* apply white-ish overlay on background art image*/
  &:after {
    content: '';
    background: rgba(255,255,255,.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
  }
}
 
@media screen and (min-width: 700px) {
  .dialog-content {
    padding: 2em;
  }
}
 
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}
 
@media (prefers-reduced-motion: reduce) {
  .dialog-overlay,
  .dialog-content {
    animation: none;
  }
}
 
/* styling for close button in modal */
.dialog-close {
  box-shadow: none !important;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  border: 0;
  padding: 0.25em;
  background-color: transparent;
  font-size: 1.5em;
  line-height: unset;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  border-radius: 50%;

  & svg {
  	width: 20px;
  	height: 20px;
  }

  &:hover, &:focus {
  background: none !important
  }
}
 
@media screen and (min-width: 700px) {
  .dialog-close {
    top: 1em;
    right: 1em;
  }
}

/* hides all dynamically generated texts from JS file */
.dialog-dynamic-content {
  display:none;
}

/* positioning of contents inside modal */
.dialog-inner-content {
  margin-top: 3em;
  max-height: calc(90vh - 7em);
  overflow-y: auto;
}

/* styling of images on GRID */
.items-dialog-button {
	appearance:none;
    outline: none;
	background: transparent;
	border-radius: unset;
	border: 0;
	box-shadow: none !important;
	color: unset;
	display: block;
	font-family: inherit;
	font-size: 16px;
	font-weight: unset;
	height: auto;
	letter-spacing: unset;
	line-height: unset;
	margin: 0;
	overflow: visible;
	padding: 0;
	text-align: unset;
	text-transform: none;
	transition: none;
	white-space: unset;
	width: auto;

	&:hover, &:focus {
		background-color: transparent !important;
    outline: none;
	}
}

/* padding between image and description in modal */
.items-dialog_bg {
  padding: 0 0 2.25em 0;
}

@media screen and (max-width:640px) {
  .items-dialog_bg {
    padding: 1.25em;
  }
}

/* positioning of portrait inside modal */
.items-dialog_photo {
  position: relative;
  z-index: 20;
  margin-left: auto;

  & img {
    max-width: 100%;
  }

	&.img-clip {
		margin-bottom: 0;
	}
	
	&.img-clip:hover {
		border-color: initial;
		transform: none;
	}
}

@media screen and (max-width:640px) {
  .items-dialog_photo.img-clip {
    width: 100px;
    height: 85px;
    border-radius: 5px 25px;
  }
}

/* styling description inside modal */
.items-dialog_text {
	background-color: #fff;
	border-radius: 10px 50px;
	padding: 1em;
}

@media screen and (max-width:640px) {
  .items-dialog_text {
    border-radius: 5px 25px;
  }
}

/* name inside modal */
.items-dialog_name {
  color: unset;
  margin-top: 1em;
}

/* link inside modal */
.items-dialog_link {
  font-weight: normal;
  margin-bottom: 0.5em;
}

/* text description inside modal */
.items-dialog_body {
  font-weight: normal;
	margin-bottom: 1em;
}