nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

nav a {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.logo-style {
  display: block;
  height: 40px;
  width: auto;
}

.profile-page-avatar {
  display: block;
  width: 100%;
  padding: .5em;
}

.profile-page-avatar img {
  margin: 0;
}

.profile-bio {
  margin: .5em;
}

header {
  max-width: 100%;
  display: flex;
}

header h1 { 
  width: 50%;
}

header .follow_button {
  width: 50%;
  text-align: right;
  margin: .5em;
}

.copy_raw_form_field {
  width: 100%;
  margin: .25em;
  outline: none;
}

.upload-status {
  display: none;
}

.media-strip {
  display: flex;
  flex-direction: row;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding:0;
  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;
}

.media-card {
  position: relative;
  flex: 0 0 85vw;
  max-width: 420px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .media-card{
    flex: 0 0 260px; /* desktop becomes card layout again */
  }

  .logo-style {
    
    height: 60px;
    
  }
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-right: -10px;
}

.media-remove {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  backdrop-filter: blur(4px);
}


.post-media-strip {
  display: flex;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.post-media-strip::-webkit-scrollbar {
  display: none;
}

.post-slide {
  position: relative;

  flex: 0 0 100%;

  scroll-snap-align: start;

  background: #fff;
}

.post-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.post-overlay {
  /*
  position: absolute;

  top: 0;
  left: 0;
  */
  width: 100%;
  padding: .5em 0;
  display: flex;
  align-items: center;
}

.post-overlay img {
  margin: 0 .5em 0 .5em;
  padding: 0;
}

.post-overlay a {
  color: #333;
  text-decoration: none;
}

.post-caption {
  padding: .5em 1em;
}

.post-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: rgba(0,0,0,0.2);
}

.posted-at {
  display: block;
  padding: 0 1em .25em;
  text-align: right;
  color: #999;
  font-size: .8em;
}


 

nav.profile-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

nav.profile-header a,
nav.profile-header form {
  flex: 0 0 auto; /* only as wide as content */
}

nav.profile-header h1 {
  flex: 1;         /* take remaining space */
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.5em;
}



/* create post button */
.create-post-button, .submit-post-button {
  width: 100%;
  margin-bottom: 1em;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 22px;

  border: none;
  border-radius: 12px;

  background: #333;
  color: white;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  
}

.create-post-button {
    transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.2s ease;

    animation: create-post-pulse 4s 3;
}

.create-post-button:hover {
  transform: scale(1.03);
}

.create-post-button:active {
  transform: scale(0.97);
}

.create-post-button:focus-visible {
  outline: 2px solid black;
  outline-offset: 3px;
}


@keyframes create-post-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0.22);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(0,0,0,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* post submit button */
.post-submit-wrap {
  opacity: 0;

  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.post-submit-wrap.visible {
  opacity: 1;

  pointer-events: auto;

  transform: translateY(0);
}