/* Import global variables */
@import '../css/variables.css';
/* SCSS Variables */
/* Mixins */
.speaker-item {
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  padding: var(--wp--preset--spacing--20) !important;
}
@media (min-width: 768px) {
  .speaker-item {
    padding: var(--wp--preset--spacing--40) !important;
  }
}
.speaker-item * {
  margin: 0px;
}
.speaker-item.with-presentation {
  cursor: pointer;
  position: relative;
}
.speaker-item.with-presentation figure {
  position: initial;
}
.speaker-item.with-presentation figure::before {
  z-index: 2;
  content: "";
  display: block;
  position: absolute;
  bottom: 0rem;
  right: 0rem;
  width: 24px;
  height: 24px;
  border: 1px solid var(--wp--preset--color--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--black);
  content: "\f101";
  font-family: "custom-icons";
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .speaker-item.with-presentation figure::before {
    width: 32px;
    height: 32px;
  }
}
.speaker-item.with-presentation:hover .speaker-picture-container:before, .speaker-item.with-presentation:focus .speaker-picture-container:before {
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
}
.speaker-picture-container {
  position: relative;
  margin-bottom: 0px;
  width: 100%;
}
@media (min-width: 768px) {
  .speaker-picture-container {
    margin-bottom: var(--wp--preset--spacing--20);
  }
}
.speaker-picture-container img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0;
}
.speaker-name {
  font-weight: 600;
  color: var(--wp--preset--color--primary);
}
.speaker-positions {
  width: 100%;
}
.speaker-presentation {
  display: none;
}
.speaker-modal-content {
  background: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--20);
  max-width: 1280px;
  width: 88%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 0px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--30);
  flex-wrap: wrap;
  flex-direction: column;
}
@media (min-width: 768px) {
  .speaker-modal-content {
    flex-direction: row;
    gap: var(--wp--preset--spacing--80);
    padding-right: 6rem;
    padding: var(--wp--preset--spacing--80);
    flex-wrap: nowrap;
  }
}
.speaker-modal-content * {
  margin: 0px;
}
.speaker-modal-close {
  font-size: 0px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
@media (min-width: 768px) {
  .speaker-modal-close {
    top: 3rem;
    right: 3rem;
  }
}
.speaker-modal-close::before {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  position: absolute;
  font-family: "custom-icons";
  width: 40px;
  height: 40px;
  color: var(--wp--preset--color--black);
  content: "\f104";
  top: 0px;
  right: 0px;
}
@media (min-width: 768px) {
  .speaker-modal-close::before {
    font-size: 1.5rem;
  }
}
.speaker-modal-picture {
  width: 200px;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
  object-fit: cover;
  margin: 0;
}
.speaker-modal-name {
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 600;
  color: var(--wp--preset--color--primary);
}
.speaker-modal-informations {
  gap: var(--wp--preset--spacing--10);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.speaker-modal-presentation {
  margin-top: 0;
}
@media (min-width: 768px) {
  .speaker-modal-presentation {
    margin-top: var(--wp--preset--spacing--20);
  }
}

/* Modal styles */
.is-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.is-modal.active {
  display: flex;
}

/* Editor styles */
.wp-block-aaaeuropforum-speaker-item .speaker-picture-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}
.wp-block-aaaeuropforum-speaker-item .speaker-picture-container .components-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-block-aaaeuropforum-speaker-item .speaker-presentation {
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f8f8;
}
.wp-block-aaaeuropforum-speaker-item-positions-list {
  margin: 1rem 0;
}
.wp-block-aaaeuropforum-speaker-item-position-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: #f8f8f8;
  margin-bottom: 0.5rem;
}
.wp-block-aaaeuropforum-speaker-item-position .add-position {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.block-editor__container .speakers-grid {
  display: flex !important;
}
.block-editor__container .speakers-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--40);
  --grid-columns: 4;
}