:root {
  --card-width: 18em;
  --card-height: 23em;
  --circle-radius: 28em;
  --gallery-accent: hsla(292, 100%, 50%, 0.5);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
}

main {
  margin: 1em 5em;
}

h1 {
  font-size: 1.8em;
}

h2 {
  font-size: 1.5em;
  margin-top: 1em;
  text-align: center;
}

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

.card {
  position: relative;
  /* width: 340px; */
  /* height: 450px; */
  width: var(--card-width);
  height: var(--card-height);
  background: #fff;
  overflow: hidden;
  border-radius: 10px;
  /* margin: 20px; */
  margin: 2em;
  box-shadow: var(--shadow);
}

.card .circle {
  position: absolute;
  top: -190px;
  left: 50%;
  /* width: 500px; */
  /* height: 500px; */
  width: var(--circle-radius);
  height: var(--circle-radius);
  transform: translateX(-50%);
  clip-path: circle();
}

.card .circle::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -16px;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 20px var(--gallery-accent);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.circle .imgBox {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  /* width: 340px; */
  /* height: 310px; */
  width: var(--card-width);
  height: calc(var(--card-width) - 1.5em);
}

.imgBox img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
}

.imgBox img:hover {
  transform: scale(1.2);
}

.card .content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* height: 140px; */
  height: 7em;
  padding: 20px 30px;
}

.content h3 {
  font-size: 1.4em;
  color: #333;
  margin-top: 7px;
  margin-bottom: 2px;
}

.content .textIcon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.content .textIcon h4 {
  color: var(--accent-color);
  font-weight: 400;
}
