@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,700;1,400;1,700');
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,700;1,400;1,600&display=swap');


img {
  display: inline-block;
  object-fit: contain;
  width: 100%;
  max-height: 100%;
}

.projects {
  display: flex;
  flex-wrap: wrap;
}


.project {
  width: 300px;
  object-fit: contain;
  padding: 30px;
  transition: width 0.3s ease;
}

.project.admin {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.project_image {
  margin-bottom: 5px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.project_image--placeholder {
  background-color: #f0f0f0;
}

a {
  text-decoration: none;
}

/* Projects controls */
.projects-controls {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 0.85em;
}

.size-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 4px 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #888;
  transition: all 0.2s ease;
}

.size-toggle:hover {
  border-color: #aaa;
  color: #666;
}

.size-toggle:has(input:checked) {
  background-color: #DEE1EA;
  color: #222;
}

.size-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Variable sizes mode */
.projects.variable-sizes .project[data-size="20"] {
  width: 120px;
}

.projects.variable-sizes .project[data-size="40"] {
  width: 200px;
}

.projects.variable-sizes .project[data-size="70"] {
  width: 300px;
}

.projects.variable-sizes .project[data-size="100"] {
  width: 500px;
}

/* Sort buttons */
.sort-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.sort-label {
  color: #888;
}

.sort-btn {
  cursor: pointer;
  padding: 4px 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #888;
  font-size: inherit;
  font-family: inherit;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  border-color: #aaa;
  color: #666;
}

.sort-btn.active {
  background-color: #DEE1EA;
  color: #222;
}

/* Alignment control */
.align-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.align-label {
  color: #888;
}

.align-select {
  cursor: pointer;
  padding: 4px 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #888;
  font-size: inherit;
  font-family: inherit;
  transition: all 0.2s ease;
}

.align-select:hover {
  border-color: #aaa;
  color: #666;
}

/* Vertical alignment modes */
.projects.align-top {
  align-items: flex-start;
}

.projects.align-center {
  align-items: center;
}

.projects.align-bottom {
  align-items: flex-end;
}
