:host {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  transition: min-height 1s;
}

:host(.video-expanded) {
  min-height: 100%;
  transition: min-height 0.8s;
}

img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

#camera-preview {
  width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  position: relative;
}

#captured-image-placeholder {
  height: auto;
}

.container {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 68px 0 48px;
  justify-content: space-around;
  align-content: center;
  box-sizing: border-box;
}

.photo-frame-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#photo-frame {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.32);
  width: 100%;
  height: auto;
  max-width: 80%;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .photo-frame-container {
    width: auto;
    height: auto;
  }
}

@media (max-width: 380px) {
  #photo-frame {
    max-width: 70%;
  }
}

.photo-frame-corner {
  position: absolute;
  --delta: -3px;
}

.photo-frame-corner.top-left {
  top: var(--delta);
  left: var(--delta);
}

.photo-frame-corner.top-right {
  top: var(--delta);
  right: var(--delta);
  transform: rotate(90deg);
}
.photo-frame-corner.bottom-left {
  bottom: var(--delta);
  left: var(--delta);
  transform: rotate(-90deg);
}
.photo-frame-corner.bottom-right {
  bottom: var(--delta);
  right: var(--delta);
  transform: rotate(180deg);
}

.photo-button-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-self: flex-end;
}

.photo-button {
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 1;
  padding: 0;
  color: #6f6f6f;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
  margin: 0 auto;
}

.zoom-buttons {
  display: flex;
  position: relative;
  justify-content: center;
  gap: 12px;
}

.zoom-buttons button {
  color: white;
  display: flex;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius-100, 8px);
  background-color: rgba(0, 0, 0, 0.48);
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}
