.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1em;
}

/* NAVBAR (breadcrumb style) */
.explorer-navbar {
    background-color: #eaeaea;
    padding: 0.5em 1em;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1em;
    overflow-x: auto;
    white-space: nowrap;
}

.explorer-path a {
    color: #0066cc;
    text-decoration: none;
    margin-right: 0.25em;
}

.explorer-path a:hover {
    text-decoration: underline;
}

/* EXPLORER WINDOW (grid of folders) */
.explorer-window {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    min-height: 200px;
    justify-content: flex-start;
}

.explorer-item {
    width: 100px;
    text-align: center;
}

.explorer-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.explorer-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.3em;
}

.explorer-label {
    font-size: 0.85em;
    font-family: monospace;
    word-break: break-word;
    text-align: center;
}

/* TOOLBAR */
.explorer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eaeaea;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.4em 0.8em;
    gap: 0.5em;
    font-family: monospace;
    font-size: 0.85em;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.sort-label {
    color: #555;
}

.sort-btn {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 0.2em 0.6em;
    font-family: monospace;
    font-size: 0.9em;
    cursor: pointer;
    color: #333;
}

.sort-btn[aria-pressed="true"] {
    background: #d0e4f7;
    border-color: #5a9fd4;
    font-weight: bold;
}

.sort-btn:hover {
    background: #e6f0fb;
}

.view-toggle-btn {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 0.2em 0.7em;
    font-family: monospace;
    font-size: 0.9em;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.view-toggle-btn:hover {
    background: #e6f0fb;
}

.view-icon-list,
.view-label-list { display: none; }

.view-toggle-btn.active .view-icon-grid,
.view-toggle-btn.active .view-label-grid { display: none; }

.view-toggle-btn.active .view-icon-list,
.view-toggle-btn.active .view-label-list { display: inline; }

/* DETAIL COLUMN (hidden in grid mode) */
.explorer-detail {
    display: none;
    font-size: 0.8em;
    font-family: monospace;
    color: #555;
    white-space: nowrap;
}

/* LIST VIEW */
.explorer-window.list-view {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
}

.explorer-window.list-view .explorer-item {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.3em 0.8em;
    box-sizing: border-box;
    text-align: left;
}

.explorer-window.list-view .explorer-item:last-child {
    border-bottom: none;
}

.explorer-window.list-view .explorer-item:hover {
    background: #ddeeff;
}

.explorer-window.list-view .explorer-item a {
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 0.6em;
    min-width: 0;
}

.explorer-window.list-view .explorer-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.explorer-window.list-view .explorer-label {
    font-size: 0.9em;
    text-align: left;
    word-break: break-word;
}

.explorer-window.list-view .explorer-detail {
    display: block;
    min-width: 180px;
    text-align: right;
    padding-left: 1em;
}

.image-viewer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
}

.image-box {
  background: #111;
  padding: 0.4em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 0px;
  display: inline-block;
}

.image-viewer-image {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: white;
}

.image-caption {
  margin-top: 1em;
  font-size: 0.95em;
  color: #444;
  text-align: center;
}

.image-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  padding: 2em;
}

.image-box.small {
  width: 10cm; /* or 25% smaller than full view */
  max-width: 100%;
  background: #111;
  padding: 0.5em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-box.small img {
  max-width: 100%;
  height: auto;
  background: white;
  display: block;
}

.image-box.big {
  width: 50em; /* or 25% smaller than full view */
  max-width: 100%;
  background: #111;
  padding: 0.5em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

image-box.big img {
  max-width: 100%;
  height: auto;
  background: white;
  display: block;
}

.pawel-says {
  display: flex;
  align-items: flex-start;
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 1em;
  margin: 1.5em auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pawel-avatar {
  max-width: 128px;
  height: auto;
  margin-right: 1em;
  border-radius: 8px;
}

.pawel-bubble {
  background: white;
  padding: 1em;
  border-radius: 8px;
  font-size: 1em;
  color: #333;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  flex: 1;
  font-family: monospace;
}
@media (max-width: 600px) {
  .page-content {
    padding: 0 0.5em;
  }

  .pawel-says {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pawel-avatar {
    margin: 0 0 1em 0;
  }

  .pawel-bubble {
    font-size: 0.9em;
  }

  .explorer-item {
    width: 80px;
  }

  .explorer-label {
    font-size: 0.75em;
  }

  .image-box.small,
  .image-box.big {
    width: 100%;
    max-width: 100%;
  }

  .image-gallery-grid {
    padding: 1em;
    gap: 0.5em;
  }

  .image-caption {
    font-size: 0.85em;
  }

  .explorer-window {
    padding: 1em 0.5em;
    gap: 0.5em;
  }
}
