title: Hide/show self based on radio checkbox
body: <p>I am working on a website where I can only use HTML and CSS (no script). The platform is Squarespace, and they make it really difficult for you to work with code, but I have to make do. Also, they use a LESS preprocessor for styles.</p>
  <p>I have 3 divs, with a full-size label in them, and then an svg code and text (I made the label full-size so that whenever these divs are clicked, stuff happens).</p>
  <p>When you click on any of the 3 divs, they're all disappearing, and the 4th div with the &quot;return&quot; link appears. When you click on the &quot;return&quot;, the other divs are supposed to reappear, and the &quot;return&quot; hides. However, even though the &quot;return&quot; hides, the other boxes do not appear.</p>
  <p>I need the flexbox properties for styling.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.resource-block {
    display: flex;
    width: 25vw;
    height: 25vw;
  }
  
  .resource-block-label {
    width: 25vw;
    height: 25vw;
    display: flex;
    cursor: pointer;
  }
  
  .resource-return-label {
    display: none;
    cursor: pointer;
  }
  
  .resource-block-input:checked~.resource-return-label {
    display: block;
  }
  
  .resource-block-input:checked~.resource-block {
    display: none;
  }
  
  .resource-return-input:checked~.resource-block {
    display: flex;
  }
  
  .resource-return-input:checked~.resource-return-label {
    display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;input name="resource-block" type="radio" id="rb-0" class="resource-block-input" /&gt;
    &lt;div class="resource-block"&gt;
      &lt;div class="resource-block-content"&gt;
        &lt;label for="rb-0" class="resource-block-label"&gt;
                  &lt;svg&gt;[svg code code]
                  &lt;/svg&gt;
                  &lt;span&gt;1&lt;/span&gt;
              &lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;input name="resource-block" type="radio" id="rb-1" class="resource-block-input" /&gt;
    &lt;div class="resource-block"&gt;
      &lt;div class="resource-block-content"&gt;
        &lt;label for="rb-1" class="resource-block-label"&gt;
                  &lt;svg&gt;[svg code code]
                  &lt;/svg&gt;
                  &lt;span&gt;2&lt;/span&gt;
              &lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;input name="resource-block" type="radio" id="rb-2" class="resource-block-input" /&gt;
    &lt;div class="resource-block"&gt;
      &lt;div class="resource-block-content"&gt;
        &lt;label for="rb-2" class="resource-block-label"&gt;
                  &lt;svg&gt;[svg code code]
                  &lt;/svg&gt;
                  &lt;span&gt;3&lt;/span&gt;
              &lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;input name="resource-return" type="radio" id="rb-return" class="resource-return-input"&gt;
    &lt;label for="rb-return" class="resource-return-label"&gt;&amp;lt Return&lt;/label&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>